[libxml++] Re: Problems using libxml++



Bastian_Pfennigschmidt/CODESCO/DE codesco com wrote:


My application is a kind of plugin for another program, its linked as a dll.
I have to link against six other libraries.
In my code I only use the libxml++.


If I use write_to_string without formatting I got the output in two lines, the first with the xml tag <?xml ... ?>
and the rest of the file as a singe line in the second line of the file.

xmlDocument.write_to_file("without_formatting.xml", "UTF-8");
xmlDocument.write_to_file_formatted("with_formatting.xml, "UTF-8");

(see attachments)


Now the formatting is right in with_formatting.xml, but if I parsed it again and save it, you got a document
like the one I've attached to my second mail.


Strange. It looks a bit like if you modified the tree and saved it with write_to_file : some formatting whitespaces are still there, some other not at all.

Let me know if you solve the problem and what was the reason.

Regards,

Christophe






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]