我需要编写一个 XPath 表达式来评估 XML 中键 'ErrorCode' 的值是否 = -3025:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<esb:esb-header xmlns:esb="http://schemas.company.com/soa/esb">
<esb:params>
<esb:param>
<esb:param-name>ErrorCode</esb:param-name>
<esb:param-value>-3025</esb:param-value>
</esb:param>
</esb:params>
</esb:esb-header>
</soapenv:Envelope>
请注意,元素具有前缀。