Gets the first attribute of this element.
Imports System Imports System.Xml Imports System.Xml.XPath Public Class MainClass Public Shared Sub Main() Dim xmlTree As XElement = <Root Att1="1" Att2="2" Att3="3"/> Console.WriteLine(xmlTree.FirstAttribute) End Sub End Class