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




Bastian_Pfennigschmidt/CODESCO/DE codesco com wrote:

<snip>

If I compile the dom_read_write example the output looks fine, even when I use
write_to_file instead of write_to_file_formatted.


It's because formatting is done by inserting whitespaces that are kept as text nodes when parsing. So writing it again keep the formatting.


Something get wrong - maybe there are some conflicts with my other libraries.


Do you have other parts of your program using libxml2 without libxml++ ? Normaly it shouldn't alterate the behavior of libxml++ with formatting but we never know : some settings for formatting are global one and I could have missed one when saving the context before the effective writing. When you lose the formatting of the output, is everything on a single line or two, or is it just messed up ?

So, I think there is no way to get a clean formatted xml output with my project settings.


Thanks for help


Your welcome


Christophe






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