XNamespace.ToString returns the URI of this XNamespace.
Imports <xmlns="http://www.domain.com"> Module Module1 Sub Main() Dim aw As XNamespace = GetXmlNamespace() Console.WriteLine("{0}", aw) End Sub End Module