XML reader - Get Value of element when attribute = a Value

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
1 post Page 1 of 1

DavidKing

Verified User
Posts: 2
Joined: Mon May 04, 2009 11:43 am

Post by DavidKing » Fri Feb 15, 2013 2:32 pm
Anyone know how I can get the value of an element when a attribute value = a value?

Example:

I have this XML

<custom-attributes>
<custom-attribute attribute-id="proratedNetPrice">7.0</custom-attribute>
</custom-attributes>

I need to get 7.0 from this path when attribute-id="proratedNetPrice"

This gives me the text "proratedNetPrice"
/orders/order/product-lineitems/product-lineitem/custom-attributes/custom-attribute/@attribute-id

Thanks.
1 post Page 1 of 1