Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Sort XML Records VB.NET sample code showing how to sort XML records in an XML document. Dim xml As New Chilkat.Xml()
xml.LoadXmlFile("companies.xml")
' Sort the company records by name.
Dim ascending As Boolean
ascending = True
xml.SortRecordsByContent("name", ascending)
' Sort the fields within each company record by the field name.
Dim b As Boolean
b = xml.FirstChild2()
While b
xml.SortByTag(ascending)
b = xml.NextSibling2()
End While
xml.GetRoot2()
xml.SaveXml("sortedByName.xml")
Important: The download for this
example does not contain the ChilkatDotNet.dll which |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.