XElement.Attributes (XName) returns a filtered collection of attributes of this element
Imports System
Imports System.Xml
Imports System.Xml.XPath
Imports System.Collections
Imports System.Collections.Generic
Public Class MainClass
Public Shared Sub Main()
Dim xmlTree As XElement = <Root Att1="content1" Att2="content2"/>
Dim attList As IEnumerable(Of XAttribute) = xmlTree.Attributes("Att1")
For Each att In attList
Console.WriteLine(att)
Next
End Sub
End Class