请教根据Xml节点属性对XML排序的问题
<?xml version= "1.0 " encoding= "gb2312 " ?>
<Root>
<item id= "3 "/>
<item id= "2 "/>
<item id= "5 "/>
<item id= "1 "/>
</Root>
----------------
怎么转换成以下格式保存???
<?xml version= "1.0 " encoding= "gb2312 " ?>
<Root>
<item id= "1 "/>
<item id= "2 "/>
<item id= "3 "/>
<item id= "5 "/>
</Root>
------解决方案--------------------lz,你的xml文件是怎么得到的?