Mega Code Archive
Creates a XmlNode with the specified XmlNodeType, Prefix, Name, and NamespaceURI
Imports System
Imports System.Xml
public class Sample
public shared sub Main()
Dim doc as XmlDocument = new XmlDocument()
doc.LoadXml("" & _
" C#" & _
" 5.95" & _
"")
Dim newElem as XmlNode
newElem = doc.CreateNode(XmlNodeType.Element, "pages", "")
newElem.InnerText = "2"
Dim root as XmlElement = doc.DocumentElement
root.AppendChild(newElem)
Console.WriteLine(doc.OuterXml)
end sub
end class