From some xml I want to find items that have a specific attribute and value.
Here is example xml:
<node>
<node>
<node>
<special NAME="thisone"></special>
</node>
<node>
<special>dont want this one</special>
</node>
</node>
</node>
(nodes can contain nodes...)
I need to find the first based on it has an attribute named "NAME" and value of "thisone".
then I need its parent (node).
I tried this:
specialItems = tempXML.*.(hasOwnProperty("NAME"));
but didnt seem to do anything.
??
Thanks!