[xml] Question about xmlDumpDoc()



Is there a mode of operation or an equivalent function which causes the XML file to be written with proper indentation?

IE instead of this:

<instance><object><data>4</data><data>6</data></object></instance>

I get something like this:

<instance>
  <object>
    <data>4</data>
    <data>6</data>
  </object>
</instance>

Thanks.

Regards,
Daniel



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