Menu

getting XML Code of a Document to Memory

peez
2006-01-10
2013-05-20
  • peez

    peez - 2006-01-10

    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.

     
    • Yves Berquin

      Yves Berquin - 2006-01-10

      #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.

MongoDB Logo MongoDB