P
PatrickRThomas
I need help selecting nodes while excluding some of them. Here's an
example of XML:
<my_xml>
<all_items>
<item>
<key>1</key>
<name>Item 1</name>
</item>
<item>
<key>2</key>
<name>Item 2</name>
</item>
<item>
<key>3</key>
<name>Item 3</name>
</item>
</all_items>
<excluded_items>
<key>1</key>
<key>3</key>
</excluded_items>
</my_xml>
I want to select the nodes from "all_items" that don't have a
coresponding value in "excluded_items". Is that possible to do? Or do
I need to do it in multiple steps by select all of the nodes and then
filtering through the ones that are excluded? Any help would be
appreciated.
example of XML:
<my_xml>
<all_items>
<item>
<key>1</key>
<name>Item 1</name>
</item>
<item>
<key>2</key>
<name>Item 2</name>
</item>
<item>
<key>3</key>
<name>Item 3</name>
</item>
</all_items>
<excluded_items>
<key>1</key>
<key>3</key>
</excluded_items>
</my_xml>
I want to select the nodes from "all_items" that don't have a
coresponding value in "excluded_items". Is that possible to do? Or do
I need to do it in multiple steps by select all of the nodes and then
filtering through the ones that are excluded? Any help would be
appreciated.