Re: [xml] about indentation



hi daniel,
"My white space is…/mine/" is exaclty what i need.
that's why

<step1><cue>1</cue><universe>0</universe></step1>

didn't work with my code.

however, i've succeeded with xmlDocCopyNodeList() to keep my indentation.

thanks for your help,
best regards
nicolas


<http://norman.walsh.name/2006/02/23/whitespace#p15>
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






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]