XQuery:如何过滤具有多个值的属性

时间:2018-12-23 21:08:44

标签: xml xquery

我有以下enter image description here

并且我想找到位置不是“前进”的玩家

2 个答案:

答案 0 :(得分:0)

这是XPath中的一线工具:

//player[descendant::position[not(text()="Forward")]]

答案 1 :(得分:0)

尝试for / where / return语句:

for $player in //player
where fn:not($player/position = 'Forward')
return $player
相关问题