Imports System
Imports System.IO
Imports System.Xml
public class Sample
public shared sub Main()
Dim doc as XmlDocument = new XmlDocument()
doc.LoadXml("" & _
"C# " & _
" ")
Dim root as XmlElement = doc.DocumentElement
if (root.HasAttribute("genre"))
Dim genre as String = root.GetAttribute("genre")
Console.WriteLine(genre)
end if
Console.WriteLine(doc.InnerXml)
end sub
end class