CXBMCTinyXML: use direct file reading instead of streaming.
That way we could avoid double parsing of file.
Replace moved code in Texture.cpp with function call