在此xml中,我要匹配包含“ match”的元素(random2元素)
<root>
 <random1>
  <random2>match</random2>
  <random3>nomatch</random3>
 </random1>
</root>
好的,到目前为止,我有:
//[re:test(.,'match','i')] (with re in the proper namespace)
这将返回random2,random1和root ...我只想获取“ random2”
有任何想法吗?