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.

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

Postby 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.
DavidKing
Verified User
 
Posts: 2
Joined: Mon May 04, 2009 11:43 am

Return to Community Forum

Who is online

Users browsing this forum: No registered users and 2 guests