Mega Code Archive
XDocument Root Property gets the root element of the XML Tree for this document
Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
Public Shared Sub Main()
Dim doc As XDocument = _
C#
MJordao
XML
G
Console.WriteLine(doc.Root.Name.ToString())
End Sub
End Class