Peter Schmidl - 2008-07-10

Hi !

It´s possible to open an c++ filestream (ifstream) instead of an XML file, and how ?!

Normally I open the file with this code:

TiXmlDocument doc(pFilename);
bool loadOkay = doc.LoadFile();

Thank you for the help !

Greets

PS: I have tested it with:

      TiXmlDocument doc;
      doc.LoadFile(*pFilestream);

Error message: cannot convert parameter 1 from 'std::ifstream' to 'TiXmlEncoding'
    No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called