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