XPath and price filter
Hi all,
There is any way to insert an price filter (like "/bookstore/book[price>35]/price") in the XPAth above?
/*[local-name(.)="Envelope" and namespace-uri(.)="http://.../"]
/*[local-name(.)="Body" and namespace-uri(.)="http://.../"]
/*[local-name(.)="response" and namespace-uri(.)="http://..."]
/*[local-name(.)="price" and namespace-uri(.)="http://..."]
/*[local-name(.)="totalAmount" and namespace-uri(.)="..."]
There is any way to insert an price filter (like "/bookstore/book[price>35]/price") in the XPAth above?
/*[local-name(.)="Envelope" and namespace-uri(.)="http://.../"]
/*[local-name(.)="Body" and namespace-uri(.)="http://.../"]
/*[local-name(.)="response" and namespace-uri(.)="http://..."]
/*[local-name(.)="price" and namespace-uri(.)="http://..."]
/*[local-name(.)="totalAmount" and namespace-uri(.)="..."]
0
Comments
/*[local-name(.)="Body" and namespace-uri(.)="http://schemas.xmlsoap.org/soap/envelope/"]
/*[local-name(.)="root" and namespace-uri(.)=""]
/*[local-name(.)="book" and namespace-uri(.)=""][price<13]
/*[local-name(.)="price" and namespace-uri(.)=""]/text()
Hope this helps.
Yes, it works. The final query:
/*[local-name(.)="Envelope" ]
/*[local-name(.)="Body" ]
/*[local-name(.)="response" ]
/*[local-name(.)="lineItemList" ]
/*[local-name(.)="lineItem" ]
/*[local-name(.)="price" ]
/*[local-name(.)="totalAmount" ][.>0]