0
我想捕獲Xpath表達式中的條件。例如,在如下面的表達式:使用正則表達式捕獲Xpath條件
loan:_applicant/base:_entity/person:_phones/base:SmartRefOfPhoneeJDvviUx[base:_entity/contact:_category/base:_underlyingValue='Personal' and base:_entity/contact:_isMobile/base:_underlyingValue!='true']/base:_entity
我想趕上:
base:_entity/contact:_category/base:_underlyingValue='Personal'
和
base:_entity/contact:_isMobile/base:_underlyingValue!='true'
該示例中的操作者和的Xpath可以或
它是possi使用正則表達式來獲取條件?記號化()
「條件」被稱爲謂詞。是否有可能獲得嵌套謂詞的XPath?例如:'/ foo [bar [2] ='baz']' – 2013-02-27 09:23:58