Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding to Xml tags

Status
Not open for further replies.
Aug 1, 2005
25
0
0
US
Hi

Any help to add to elements/tags existing already in a file

ex.
xmlList.xml

sample tags
<grub>
<pizza>
<topping>sausage</topping>
<topping>onions</topping>
</pizza>
<hotd>
<topping>ketchup</topping>
<topping>onions</topping>
</hotd>
</grub>

Many thanks!!!!
 
If you set your XML file up as an XMLDocument, you can simply use a combination of the CreateElement, AppendChild, InsertAfter and InsertBefore methods to add nodes wherever you need them.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top