Imports System
Imports System.Xml
Imports System.Xml.XPath
Imports System.Linq
Imports System.Collections
Imports System.Collections.Generic
Public Class MainClass
Public Shared Sub Main()
Dim root As XElement = _
1
2
3
4
5
6
Dim list As IEnumerable(Of XElement) = root.XPathSelectElements("./Child2")
For Each el As XElement In list
Console.WriteLine(el)
Next
End Sub
End Class