请求xml是:
<ABC>
<ServiceCharacteristic>
<Code>AAA</Code>
<CharacteristicValue>
<CharacteristicValue>2222</CharacteristicValue>
</CharacteristicValue>
</ServiceCharacteristic>
<ServiceCharacteristic>
<Code>BBB</Code>
<CharacteristicValue>
<CharacteristicValue>2223</CharacteristicValue>
</CharacteristicValue>
</ServiceCharacteristic>
<ServiceCharacteristic>
<Code>CCC</Code>
<CharacteristicValue>
<CharacteristicValue>2224</CharacteristicValue>
</CharacteristicValue>
</ServiceCharacteristic>
<Account>
--------
</Account>
</ABC>
Need to put a BPEL if condition to check if there is ServiceCharacteristic with code "CCC"
尝试了类似下面的方法但没有运气(错误(703):LocationPath 表达式“self::node()/child::*[(local-name() = "Code")]" is not allowed in 因为没有存在隐式上下文节点):
**count($variable name/'*asterisk'[local-name()='ServiceCharacteristic' and ./'*asterisk'[local-name()='Code']='CCC'] ) > 0**
任何输入请..谢谢