Re: [xml] indentation after adding new nodes





Senthil Nathan *top-posted* again:
I used xmlSaveFile("file.xml", docTree); This just dumps the xmlDocPtr
docTree to "file.xml"
without any indentation. Is there any options in libxml2 to set it properly.

Care to read the manual?

Go to

http://xmlsoft.org/html/libxml-tree.html

and look for "format".

Stefan



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