Hi,
I havew a smal xml file which looks like this:
I'm creating buttons in my app from the "innertext":Code:<?xml version="1.0" encoding="utf-8" ?> <fv> <flv url="http://www.mysite1.com">Windows</flv> <flv url="http://www.mysite2.com">Happy</flv> </fv>
This all works fine, all the buttons are added according the xml. I would like to know how to sort the "innertext" so the buttons are alphabetically added.vb.net Code:
Dim myxml As XmlDocument = New XmlDocument() myxml.Load(favoPath) For Each el As XmlElement In myxml.DocumentElement.ChildNodes Dim itm As New ButtonItem(el.InnerText, el.InnerText) itm.Tag = el.GetAttribute("url") 'etc...
[Happy]
[Windows]
Thanks in advance.



Reply With Quote
