Thanks Daniel. I'll try it.

Yong Chen 

> -----Original Message-----
> From: Daniel Veillard [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 14, 2006 10:51 PM
> To: Yong Chen (yongche)
> Cc: [email protected]
> Subject: Re: [xml] xmlDocDump() generates output on one line
> 
> 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/
> [EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  
> http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search 
> engine http://rpmfind.net/
> 
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to