Re: [xml] about indentation



On Sat, Mar 04, 2006 at 04:44:30AM -0500, Daniel Veillard wrote:
On Fri, Mar 03, 2006 at 08:28:04PM +0100, nico wrote:
it works but indentation is not correct

  indentation means *nothing* in XML. That does not exist.
Add text nodes with whatever content you need to get the final
document look like you expect. Libxml2 will not guess what you
mean with "indentation is not correct".

  libxml2 behaviour is precisely to avoid this kind of problems
That Norm is rightfully complaining about:

    http://norman.walsh.name/2006/02/23/whitespace

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]