Imports System
Imports System.IO
Imports System.Xml
publicclass Sample
public shared sub Main()
Dim doc as XmlDocument = new XmlDocument()
doc.LoadXml("<book xmlns:bk='urn:samples'>" & _
"<bk:ISBN>1-111111-57-5</bk:ISBN>" & _
"<title>C#</title>" & _
"</book>")
Dim elem as XmlElement
elem = CType(doc.DocumentElement.ChildNodes.Item(0),XmlElement)
Console.Write("{0} = {1}", elem.Name, elem.InnerText)
Console.WriteLine(" namespaceURI=" + elem.NamespaceURI)
end sub
end class