XNamespace.Xml Property gets the XNamespace object that corresponds to the XML URI (http://www.w3.org/XML/1998/namespace).
Imports System Imports System.Xml Imports System.Xml.Schema Class MainClass Shared Sub Main() Dim root As XElement = _ <Root xml:space="preserve"> <Child>content</Child> </Root> Console.WriteLine(root) End Sub End Class