I have found the bug (well I think it is a bug) in TinyXml . I will keep the update but apply the fix :
bool TiXmlPrinter::Visit( const TiXmlText& text )
{
if ( text.CDATA() )
{
DoIndent();
buffer += "<![CDATA[";
buffer += text.Value();
buffer += "]]>";
DoLineBreak();
}
else if ( simpleTextPrint )
{
buffer += text.Value();
// TIXML_STRING str;
// TiXmlBase::EncodeString( text.ValueTStr(), &str );
// buffer += str;
}
else
{
DoIndent();
buffer += text.Value();
// TIXML_STRING str;
// TiXmlBase::EncodeString( text.ValueTStr(), &str );
// buffer += str;
DoLineBreak();
}
return true;
}
buffer += text.Value(); was replaced in the new version by the lines I have commented out now. I will investigate further.