csssuperman
MIS
Hi
My xml shows as follows
in asp.net
Dim xml As New XmlDocument
xml.Load(Server.MapPath("xmlList.xml"))
Dim xNode As XmlNode
xNode = xml.SelectSingleNode("grub/pizza")
Dim xElem As XmlElement
xElem = xml.CreateElement("topping")
xElem.InnerText = "cheese "
xNode.AppendChild(xElem)
Label1.Text = xml.InnerXml
xNode.RemoveChild(xNode.ChildNodes(1))
Label2.Text = xml.InnerXml
Everything flows fine, but how can I update my xml file properly?
Many thanks!
My xml shows as follows
in asp.net
Dim xml As New XmlDocument
xml.Load(Server.MapPath("xmlList.xml"))
Dim xNode As XmlNode
xNode = xml.SelectSingleNode("grub/pizza")
Dim xElem As XmlElement
xElem = xml.CreateElement("topping")
xElem.InnerText = "cheese "
xNode.AppendChild(xElem)
Label1.Text = xml.InnerXml
xNode.RemoveChild(xNode.ChildNodes(1))
Label2.Text = xml.InnerXml
Everything flows fine, but how can I update my xml file properly?
Many thanks!