Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
Public Shared Sub Main()
Dim xmlTree As XElement = _
1
2
3
4
5
6
Dim elementList() As XElement = _
{ _
xmlTree...(0), _
xmlTree...(0), _
xmlTree...(0) _
}
Dim inDocOrder = elementList.InDocumentOrder
For Each el As XElement In inDocOrder
Console.WriteLine(el)
Next
End Sub
End Class