[xml] Add newline character after each child node
- From: "Bhanu prakash" <bhanu s linuxwaves com>
- To: <xml gnome org>
- Subject: [xml] Add newline character after each child node
- Date: Tue, 07 Feb 2012 13:47:55 -0000
Hi All,
Please let me know how to add a newline character after adding each child node using libxml2.
I use below command to add a child node.
xmlNewTextChild(a_node, NULL, (xmlChar *)"child", (xmlChar *)"tre");
but the resulting xml nodes will be continuous.
Current Output:
<root>
<child>tre</child><Name>bhanu</Name>
</root>
I want the output as below:
<root>
<child>tre</child>
<Name>bhanu</Name>
</root>
Awaiting your reply,
Thanks & Regards,
Bhanuprakash S
Get your FREE, LinuxWaves.com Email Now! --> http://www.LinuxWaves.com
Join Linux Discussions! --> http://Community.LinuxWaves.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]