Mega Code Archive

 
Categories / VB.Net / XML LINQ
 

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 = <Root Att1="1" Att2="2" Att3="3"/>         Console.WriteLine(xmlTree.LastAttribute)     End Sub End Class