Re: [gdome]saving xml tree: no new line after xml elements printing



On Thu, Apr 26, 2001 at 05:04:31PM +0200, Paolo Casarini wrote:
> 
> 
> On Thu, 26 Apr 2001, Laurent Lemaitre wrote:
> 
> > What should I do to force indentation through the DOM interface?
> Nothing, I'll wrap the libxml feature tomorrow... I don't think I'll make
> soon a release for this feature, but I'll send the patch to add it to
> 0.6.4.

  I don't think it should be done by default !
The XML spec is 100% precise about this, no character is ignorable,
adding even a space or a line break is a significant change. The
Right Thing to do is document that fact and ask people to insert
the formatting where they need them (or add an extra interface to
save in indented mode but this should definitely *NOT* be the default).

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
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]