Is it possible to use TinyXML on top of a byte stream instead of a file?
Consider this piece of code:
TiXmlDocument doc("abc.xml");
if (!doc.LoadFile())
return;
TiXmlHandle hDoc(&doc);
The above code snippet accepts the file as input. How can I change the code so that it accepts a stream of bytes? The sample code snippet will be great!
source
share