[xml] Formatting output

Title: Message
I'm modifying an existing XML document that is formatted with linebreaks and indentation for readability.  I'm trying to get my code to add tags with the correct formatting.
After searching through old email from this list I found out about xmlSaveFormatFile().  While this does preserve the existing formatting it does not help with the new tags I am adding to the document.  I also discovered a thread about xmlIndentTreeOutput = 1; and xmlKeepBlanksDefault(0); but they seem to have no effect.
I'm using libXML 2.4.28 on Windows and 2.4.25 on Solaris 8.  Can anyone tell me how I can add a new tag to an existing document and have it indent and linebreak correctly?

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