关于xml排序问题!!很麻烦,要分送分!!大家帮下小妹

dreamsun 2003-11-21 01:08:29
有一个score.xml文件
<scorelist>
<score>
<s1>80</s1>
<s2>90</s2>
</score>
<score>
<s1>75</s1>
<s2>60</s2>
</score>
<score>
<s1>86</s1>
<s2>75</s2>
</score>
.
.
.
</scorelist>
用DOM读入score.xml,同时对s1,s2排序,然后再用DOM保存为该文件。
不能用XSL来排,请问大家如何实现?
...全文
25 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2003-11-21
  • 打赏
  • 举报
回复
give us an example on the output format you want, and let's know what environment you are working in (Java or .NET or Javascript..)?
孟子E章 2003-11-21
  • 打赏
  • 举报
回复
xml是数据,就象数据库,排序没有什么用啊。表现的时候再考虑
dreamsun 2003-11-21
  • 打赏
  • 举报
回复
即是按s1,s2的大小排序
大的放在前面,小的放在后面。重新构造一份xml,然后保存
saucer 2003-11-21
  • 打赏
  • 举报
回复
what do you mean by "同时对s1,s2排序"? if you want to keep the format of the xml, apparently, you cannot 同时对s1,s2排序

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧