Re: Write Xml to file with Indentation.



I did, write_to_file_formatted method in the document class.

On 07/01/2012 02:10 PM, Caroline J. Gerrebout wrote:
Hi Jayashree
maybe you can tell us what the solution was... It may help other people.
ThanX

Jayashree wrote:
Hi,

I found a method in the document object write_to_file_formatted,
which solves my problem.

thanks,
Jaya

On 06/20/2012 01:44 PM, Jayashree wrote:
Hi,

I am using the document object write_to_file method to create my output file.
But it writes in as

<root><foo>Bar</foo></root>

but i want the output to be written with Indentation as given below

<root>
<foo>Bar</foo>
</root>

How can i achieve it.

regards,
Jaya
_______________________________________________
libxmlplusplus-list mailing list
libxmlplusplus-list gnome org
https://mail.gnome.org/mailman/listinfo/libxmlplusplus-list



_______________________________________________
libxmlplusplus-list mailing list
libxmlplusplus-list gnome org
https://mail.gnome.org/mailman/listinfo/libxmlplusplus-list







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