Imports System
Imports System.Xml.Linq
Imports System.Linq
Imports System.Xml.XPath
Imports System.Xml
Public Class MainClass
Public Shared Sub Main()
Dim markup As XElement = _
child one data
child two data
Dim reader As XmlReader = markup.CreateReader
Dim nameTable As XmlNameTable = reader.NameTable
Dim namespaceManager As XmlNamespaceManager = New XmlNamespaceManager(nameTable)
namespaceManager.AddNamespace("aw", "http://www.domain.com")
Dim child1 As XElement = markup.XPathSelectElement("./my:Child1", namespaceManager)
Console.WriteLine(child1)
End Sub
End Class