I have the following XML:
<products>
<product>
<name>Flat Panel Monitor</name>
<code>LS123</code>
<attributes>
<attribute>
<group>Color</group>
<values>
<value>Red</value>
<value>Blue</value>
<value>Green</value>
</values>
</attribute>
<attribute>
<group>Warranty</group>
<values>
<value>5 Year</value>
</values>
</attribute>
</attributes>
</product>
</products>
What Xpath would i use to get all value's with the attribute node with the group node value of "Color" ? A standard Xpath of /product/attributes/attribute/values/value
would return all value's including value's from within the Warranty group but i need to keep them separate.
I guess in pseudocode what i'm saying is get all "value" where the parent node "values" is a sibling of the node "group" with the value "Color" - hopefully this is possible?
Thanks.