Imports System
Imports System.Xml
Imports System.Xml.Schema
Imports System.Linq
Imports System.Collections
Imports System.Collections.Generic
Class MainClass
Shared Sub Main()
Dim xmlTree As XElement = _
Text content.
child1 content
child2 content
child3 contentMore text content.
child4 content
child5 content
Dim child3 As XElement = xmlTree.(0)
Dim child5 As XElement = xmlTree.(0)
If (child5.IsBefore(child3)) Then
Console.WriteLine("Child5 is before Child3")
Else
Console.WriteLine("Child5 is not before Child3")
End If
End Sub
End Class