How can I get the XML output of a TiXmlDocument without using STL-Support? All I found was with ostringstream and it seems to work only in STL-Mode.
#include "tinyxml.h"
void main () { TiXmlDocument doc; doc.LoadFile ("xx.xml"); TiXmlOutStream os; os << doc; printf ("%s\n", os.c_str ()); }
Log in to post a comment.
How can I get the XML output of a TiXmlDocument without using STL-Support?
All I found was with ostringstream and it seems to work only in STL-Mode.
#include "tinyxml.h"
void main ()
{
TiXmlDocument doc;
doc.LoadFile ("xx.xml");
TiXmlOutStream os;
os << doc;
printf ("%s\n", os.c_str ());
}