Re: [xml] about indentation



hi,
thanks for your reply,

i should have a bad english....
i want to add a nodelist at the end of the rootdocument

it works but indentation is not correct
shoul i create a buffer, fill the buffer and dump it to a file?

many thanks
libxml2 will not add other text nodes children if a node already has text child. That's imposed to avoid breaking content when nodes have a mixed-content model.
  The only ultimate way to garantee indenting while not detroying data
is for you to add the text nodes when you think it makes sense.

Daniel






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