Msadiqrajani
Board Regular
- Joined
- Jan 17, 2009
- Messages
- 107
Hello,
I want to add new element in existing XML file.Now I have following XML.
Now I want to add this node.
I am using XMLDom for this and tried many thing but am unable to figure out code.
Please provide me code snippet or any outside resourse.
Thanks
I want to add new element in existing XML file.Now I have following XML.
HTML:
<persons>
<person id=1>
<fname> Bill </fname>
<lname> John </lname>
</person>
<person id=2>
<fname> John </fname>
<lname> Smith </lname>
</person>
</persons>
Now I want to add this node.
HTML:
[CODE]<person id=3>
<fname> Adam </fname>
<lname> Bacher </lname>
</person>[/CODE]
I am using XMLDom for this and tried many thing but am unable to figure out code.
Please provide me code snippet or any outside resourse.
Thanks