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.
我在 XMLSPY 中有以下代码片段,它运行正常:
xquery version "1.0"; <query2> { for $r in /reviews/review return $r/reviewer } </query2>
如何在 xpath 中包含 xml 文件名,例如 abc.xml/reviews/review ?
我可以自己解决这个问题:
<query2> { for $r in doc("reviews.xml")/reviews/review return $r/reviewer } </query2>