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 = doc.CreateNode("element", "pages", "")
newElem.InnerText = "1"
Dim root as XmlElement = doc.DocumentElement
root.AppendChild(newElem)
Console.WriteLine(doc.OuterXml)
end sub
end class