Z
zhem8
Unregistered / Unconfirmed
GUEST, unregistred user!
我用XMLDocument文件对xml文件进行操作,xml文件结构如下:
<?xml version="1.0" encoding="gb2312" ?>
<syn title="邓小平理论概论总复习二" author="Goofy" grade="本科">
<res title="aaaa" time="20" url="1.htm" level="1" frame="2" type="other" />
<res title="bbbb" time="15" url="2.htm" level="1" frame="2" type="other" />
<res title="bbbb" time="0" url="2.htm" level="1" frame="2" type="other" />
</syn>
我想按"res"节点的time属性来排序,排序后的xml为:
<?xml version="1.0" encoding="gb2312" ?>
<syn title="邓小平理论概论总复习二" author="Goofy" grade="本科">
<res title="bbbb" time="0" url="2.htm" level="1" frame="2" type="other" />
<res title="bbbb" time="15" url="2.htm" level="1" frame="2" type="other" />
<res title="aaaa" time="20" url="1.htm" level="1" frame="2" type="other" />
</syn>
请高手指教!!
<?xml version="1.0" encoding="gb2312" ?>
<syn title="邓小平理论概论总复习二" author="Goofy" grade="本科">
<res title="aaaa" time="20" url="1.htm" level="1" frame="2" type="other" />
<res title="bbbb" time="15" url="2.htm" level="1" frame="2" type="other" />
<res title="bbbb" time="0" url="2.htm" level="1" frame="2" type="other" />
</syn>
我想按"res"节点的time属性来排序,排序后的xml为:
<?xml version="1.0" encoding="gb2312" ?>
<syn title="邓小平理论概论总复习二" author="Goofy" grade="本科">
<res title="bbbb" time="0" url="2.htm" level="1" frame="2" type="other" />
<res title="bbbb" time="15" url="2.htm" level="1" frame="2" type="other" />
<res title="aaaa" time="20" url="1.htm" level="1" frame="2" type="other" />
</syn>
请高手指教!!