[xml] about indentation



hi all,
i use xmlSaveFileEnc() to save tree modification.

when i update a node, it's perfect

when i add a node to a document (done with xmlAddChild), the resulting document isn't well indented.
my code is the same as tree2.c .
i got this format:
<step1><cue>1</cue><universe>0</universe></step1>

or i would like to have
<step1>
    <cue>1</cue>
   <universe>0</universe>
</step1>


thank you for any help,
best regards

nicolas





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