Hi, This might sound really simple, but I have spent multiple hours on it to find no result. Here is the situation. MY xml structure looks like this:
<root>
<RES>
<R N="1">
<FM>11580</FM>
<SEZ N="name" V="dummy name"/>
<SEZ N="customData" V="customValue1"/>
<SEZ N="width" V="247"/>
<SEZ N="height" V="247"/>
<S>... WOW...Life sure is a mystery</S>
</R>
<R N="2">
<FM>11582</FM>
<SEZ N="name" V="dummy name"/>
<SEZ N="width" V="247"/>
<SEZ N="height" V="247"/>
<S>... WOW...Life sure is a mystery</S>
</R>
<R N="3">
<FM>11584</FM>
<SEZ N="name" V="dummy name"/>
<SEZ N="customData" V="customValue2"/>
<SEZ N="width" V="247"/>
<SEZ N="height" V="247"/>
<S>... WOW...Life sure is a mystery</S>
</R>
</RES>
</root>
Now following code:
root.RES…SEZ.(@N == “customData”)
returns me
<SEZ N=“customData” V=“customValue1”/>
<SEZ N=“customData” V=“customValue2”/>
But I am not able to refer to the corresponding parent <R> so that I can traverse it to retrieve corresponding <SEZ N=“name” V=“dummy name”/>
Please help…