Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何对 XML 文件中的元素进行排序。我有一个课程 XML 文件,我的课程 XML 文件有 5 个单元,它们被引用为xi:include.
xi:include
每个单元又都有一个unitsequencenumber元素。我需要返回我的课程 XML,并带有基于unitsequencenumber.
unitsequencenumber
使用order by:
order by
for $e in doc('filename.xml')/unit order by $e/unitsequencenumber return $e