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