XNamespace.Get gets an XNamespace for the specified Uniform Resource Identifier (URI).
Imports <xmlns:aw="http://www.domain.com">
Imports System
Imports System.Xml
Imports System.Xml.Schema
Module Module1
Sub Main()
Dim aw As XNamespace = XNamespace.Get("http://www.domain.com")
' This is the preferred form.
Dim aw2 As XNamespace = GetXmlNamespace(aw)
Console.WriteLine(aw)
Console.WriteLine(aw2)
End Sub
End Module