Hi,
I noted a strange formatting when the target mode is XML_TARGET_MODE_MEMORY.
With the following code
// Manipulate export format
XMLEXPORTFORMAT xf = {0};
xf.UseSpace = true;
xf.nId = 2;
xf.ElementsNoBreak = true;
_xml->SetExportFormatting(&xf);
size_t size = _xml->MemoryUsage();
char * buff = new char[size];
memset(buff, 0, size);
_xml->Export((FILE*)buff, XML_SAVE_MODE_DEFAULT, XML_TARGET_MODE_MEMORY);
the output is:
<NODE>
<CHILD1>
text</CHILD1>
<CHILD2>
text</CHILD2>
<NODE>
where the text is preceded by a CRLF.
If in the code I change the last line with:
_xml->Export(stdout, XML_SAVE_MODE_ZERO);
the output is correct:
<NODE>
<CHILD1>text</CHILD1>
<CHILD2>text</CHILD2>
<NODE>
Regards,
Daniele.