XDocument.NodeType Property gets the node type for this node.
Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
Public Shared Sub Main()
Dim xmlTree As XDocument = _
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<Root>content</Root>
Console.WriteLine("{0}", xmlTree.NodeType)
End Sub
End Class