Sort XML nodes alphabetically on attribute name

前端 未结 3 1477
栀梦
栀梦 2021-01-07 13:17

I have an XML document for which I want to sort specific nodes alphabetically.

XML document


    

        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 14:03

    Since all answers seem to work with Linq and I just wanted to use regular VB.NET I now added each node in an Arraylist and used the regular Array.Sort() on it. Does the trick.

提交回复
热议问题