Create an XML tree in a namespace
Imports System Imports System.Xml Imports System.Xml.XPath Public Class MainClass Public Shared Sub Main() Dim root As XElement = _ <Root xmlns='http://www.domain.com'> <Child>child content</Child> </Root> Console.WriteLine(root) End Sub End Class