1
我以前http://www.freeformatter.com/xpath-tester.html来获得为什么我的XPath表达式不匹配?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:paf="http://paf.mycompany.com/">
<soapenv:Header/>
<soapenv:Body>
<paf:requestpafBean>
<!--Optional:-->
<arg0>
<!--Optional:-->
<UserId>?</UserId>
<!--Optional:-->
<DateNow>?</DateNow>
</arg0>
</paf:requestpafBean>
</soapenv:Body>
</soapenv:Envelope>
UserId
值来测试这个XPath表达式:
//paf:UserId[1]/@text
我为什么会不匹配?
@kjhughes谢谢我更新。我也试图改变我的xpath表达式,没有运气 – user310291