XElement LastAttribute gets the last attribute of this element
Imports System Imports System.Xml Imports System.Xml.XPath Public Class MainClass Public Shared Sub Main() Dim xmlTree As XElement = Console.WriteLine(xmlTree.LastAttribute) End Sub End Class