XAttribute.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 root As XElement = <Root Att="content"/>
Dim att As XAttribute = root.FirstAttribute
Console.WriteLine(att.NodeType.ToString)
End Sub
End Class