The following is an example of compiling and sorting:VBProtected Sub Button9_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Button9.Click lbl = GetLabel(275, 20) Dim s As String Dim xmlDoc As New XPathDocument(MapPath(XmlSample.xml)) Dim nav As XPathNavigator = xmlDoc.CreateNavigator() Select all myChild elements Dim expr As XPathExpression expr = nav.Compile(//myChild) S