I have this xml:
<Root>
<BTS processid="28" processdesc="בחירת שמאי / מוסך" statusdesc="TEST1"
statusid="1099" requesteventts="2013-03-20 11:39:23.053120">
<btsstatusconv AgentsStatusDesc="TEST2" />
</BTS>
<BTS processid="28" processdesc="בחירת שמאי / מוסך" statusdesc="TEST3"
statusid="2001" requesteventts="2013-03-20 11:39:50.362384">
<btsstatusconv AgentsStatusDesc="TEST4" />
</BTS>
</Root>
what i need is:
- take each "BTS" tag.
- check the current "BTS" tag, "btsstatusconv" tag AgentsStatusDesc attribute.
- Change the current "BTS" statusdesc attirbute according to step 2 check.
How can i loop through each "BTS" tag checking its inner "btsstatusconv" tag "AgentsStatusDesc" attribute and act by the result?
I know how to go iver the BTS tags but having trouble getting the "btsstatusconv" tag inside it.
Thanks.