XNamespace.NamespaceName Property gets the Uniform Resource Identifier (URI) of this namespace.
Imports <xmlns:aw="http://www.domain.com">
Imports System
Imports System.Xml
Imports System.Xml.Schema
Module Module1
Sub Main()
Dim aw As XNamespace = GetXmlNamespace(aw)
Dim root As XElement = <aw:Root/>
Console.WriteLine(root.Name.Namespace.NamespaceName)
End Sub
End Module