Renato Riolino - 2013-08-21

Hi, I have an application written in C++ and using TinyXML2.

I have a case that I want to print the XML of only a specific part of the file, for example:

< a >
..< b >
....< c >
......< 1/ >
......< 2/ >
....< /c >
..< /b >
< /a >

I have a method that is called passing a XMLEment that represents < c >...< /c >. I'd like from this method to print the XML from this XMLElement, like this:

< c >
..< 1/ >
..< 2/ >
< /c >

I tried to cast the XMLElement to a XMLDocument to use doc.Print() but didn't work.

Thanks.

 

Last edit: Renato Riolino 2013-08-21