posted 15 years ago
Hi Ranchers.,
I am trying to copy one XML into other but I only want to copy entire block of elements if one particular child tag exist.
For example
<Elements>
<element>
<a1></a1>
<b1></b1>
<c1></c1>
</element>
<element>
<a1></a1>
<b1></b1>
</element>
</Elements>
So in above xml I want copy all <element> tags only if <c1> exist in that.
How do I achieve that?
Thanks in advance ,