From: Christophe de V. <cde...@al...> - 2003-12-16 15:14:43
|
Bastian_Pfennigschmidt/CODESCO/DE...@co... 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 |