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!

Deleting from XML tags

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

Any code to help delte from a tag(s) from an xml doc

Doin the coding in asp.net

Many thanks!!!
 
Dim Myxml As New XmlDocument
Myxml.Load(Server.MapPath("File1.xml"))
Dim xNode As XmlNode
xNode = Myxml.SelectSingleNode("food/fruits")

xNode.RemoveChild(xNode.ChildNodes(1))

Myxml.Save(Server.MapPath("File1.xml"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top