Add an Element to a XML Document in VB.NET



Add an Element to a XML Document in VB.NET

'Assembly: System.Xml.dll

'Namespace: System.Xml

Var XmlDoc AS XmlDocument = "xmlDoc"

Dim newElement As XmlNode
newElement = XmlDoc.CreateElement(Element)
newElement.InnerText = Value
XmlDoc.AppendChild(newElement)

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.