如何创建一个notes
元素作为根节点的“单个”结果,以及元素的多个子节点note
?
这是 中的查询eXide
:
xquery version "3.0";
for $note in collection('/db/tmp')/note
return <notes>{$note}</notes>
输出是:
nicholas@mordor:~/flwor$
nicholas@mordor:~/flwor$ lynx http://localhost:8080/exist/rest/db/scripts/notes.xq --dump
<notes>
<note>
bar
</note>
</notes>
<notes>
<note>
foo
</note>
</notes>nicholas@mordor:~/flwor$
nicholas@mordor:~/flwor$
我怎样才能得到一个文档,它有一个notes
Firefox 不会阻塞的根元素?
有两个文件,foo.xml
并且bar.xml
在集合中。