[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] xmlDocDump() generates output on one line
- From: Daniel Veillard <veillard redhat com>
- To: "Yong Chen (yongche)" <chen cisco com>
- Cc: xml gnome org
- Subject: Re: [xml] xmlDocDump() generates output on one line
- Date: Wed, 15 Mar 2006 01:51:01 -0500
On Tue, Mar 14, 2006 at 05:59:58PM -0800, Yong Chen (yongche) wrote:
>
> Hi,
>
> In FAQ, it states xmlDocDump outputs to one line only (which is true),
> the #1 suggestion is "to generate those yourself too", can you please
> elaborate it?
>
> Do you mean we should traverse the doc tree ourselves to print out nodes
> with indentation
yes. Alternatively if you know you don't have mixed content in the
generated document, use the xmlsave API
http://xmlsoft.org/html/libxml-xmlsave.html
and pass an XML_SAVE_FORMAT option when creating the save context.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]