I have the XML and I want to find the path to price tag and code
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <getProductDetailsResponse xmlns="http://warehouse.example.com/ws"> <getProductDetailsResult> <productID>12345</productID> <productName>Стакан граненый</productName> <description>Стакан граненый. 250 мл.</description> <price>9.95</price> <currency> <code>840</code> <alpha3>USD</alpha3> <sign>$</sign> <name>US dollar</name> <accuracy>2</accuracy> </currency> <inStock>true</inStock> </getProductDetailsResult> </getProductDetailsResponse> </soap:Body> </soap:Envelope> I can get the path to values if I delete namespace-xmlns="http://warehouse.example.com/ws"... The path is - /soap:Envelope/soap:Body/getProductDetailsResponse/getProductDetailsResult/price/text()
But server return it only with namespaces.
How I can get values?
Thanks in Advance
No comments:
Post a Comment