I'm working with the DOM in VB, and would like to sort the child elements of a node by their attributes. Can this be done and can you provide an example?
For example...
<FruitStand>
<Apples>
<Apple AppleType="Granny Smith" Color="Green"/>
<Apple AppleType="Macintosh" Color="Red"/>
...
<Apple AppleType="Red Delicious" Color="Red"/>
</Apples>
</FruitStand>
I might for instance want to sort by Color.
For example...
<FruitStand>
<Apples>
<Apple AppleType="Granny Smith" Color="Green"/>
<Apple AppleType="Macintosh" Color="Red"/>
...
<Apple AppleType="Red Delicious" Color="Red"/>
</Apples>
</FruitStand>
I might for instance want to sort by Color.