Hi Guys,
I have an xml similar to this one:
Can someone help me out and explain whats the simplest way of selecting nodes that have it's own or parent node's attribute: ForceUpdate set to true.
Ie.: SystemUpdate's ForceUpdate is set to true = that will select all Book nodes,
A node's ForceUpdate set to true = this will select Black,BlackRed, Red and Green Book nodes.
B node's ForceUpdate set to true = this will select "Old" and "New" Book nodes.
So in the quoted xml example selected nodes would be: Green,Old and New.
Hope I explained it correctly.
I was trying to find something that works similar but had no luck.
Thanks in advance.
Adrian
I have an xml similar to this one:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<SystemUpdate ForceUpdate="false" >
<A ForceUpdate="false">
<Book name="Black" />
<Book name="BlackRed" />
<Book name="Red" />
<Book name="Green" ForceUpdate="true"/>
</A>
<B ForceUpdate="true">
<Book name="Old" />
<Book name="New"/>
</B>
</CapUpdate>
Ie.: SystemUpdate's ForceUpdate is set to true = that will select all Book nodes,
A node's ForceUpdate set to true = this will select Black,BlackRed, Red and Green Book nodes.
B node's ForceUpdate set to true = this will select "Old" and "New" Book nodes.
So in the quoted xml example selected nodes would be: Green,Old and New.
Hope I explained it correctly.
I was trying to find something that works similar but had no luck.
Thanks in advance.
Adrian
Comment