XElement.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 el1 As XElement = <Root>content</Root>
Console.WriteLine(el1.NodeType.ToString())
End Sub
End Class