0
獲取節點值我有以下XML:無法使用XPATH
<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP:Body>
<performJob loadfromcache="yes">
<jobName>PQIssueDetails</jobName>
<whiteboard>
<PQ>
<hostAddress>21212</hostAddress>
<hostPort>12955</hostPort>
<timeout>120000</timeout>
<trace>0</trace>
<readable>N</readable>
<userID>2121</userID>
<password>[email protected]</password>
<currentDate>8/28/2015 10:31 AM</currentDate>
<AWD10SP7_1orhigher>Y</AWD10SP7_1orhigher>
<METHOD>GET</METHOD>
<eao>08272015</eao>
<storedProcedure id="PQISSUEDETAIL">
<parameter id="P_CRDATTIM">
<value>2015-08-25-01.40.19.219580</value>
<dataType>string</dataType>
</parameter>
<parameter id="P_RECORDCD">
<value>T</value>
<dataType>string</dataType>
</parameter>
<parameter id="P_CRNODE">
<value>01</value>
<dataType>string</dataType>
</parameter>
</storedProcedure>
</PQ>
</whiteboard>
<requestNodeName>.</requestNodeName>
<responseNodeName>//PQ</responseNodeName>
<jobDB>
<name>PQCustomerService</name>
<userID>sa</userID>
<password>password</password>
</jobDB>
</performJob>
</SOAP:Body>
</SOAP:Envelope>
我想下<storedProcedure>
標籤來獲得的第一個參數的<value>
纔有價值。
我用下面的XPATH努力,但它不工作
//PQ/storedProcedure/parameter[1]/@value
我想我做的事情wronghere同時使用XPATH能否請你幫我在這?
謝謝.. + 1快速響應 –
歡迎您! – splash58