Imports System
Imports System.Xml
Imports System.Xml.XPath
Imports System.Collections
Imports System.Collections.Generic
Imports <xmlns:aw="http://www.domain.com">
Module Module1
Sub Main()
Dim xmlTree As XElement = <aw:Root aw:Att1="content1" aw:Att2="content2"/>
Dim attList As IEnumerable(Of XAttribute) = _
From at In xmlTree.Attributes() _
Select at
For Each att In attList
Console.WriteLine(att)
Next
End Sub
End Module