I have the following XML:
<TRACKING>
<AT_STAGE>Stage1</AT_STAGE>
<CNT>5</CNT>
<AT_STAGE>Stage2</AT_STAGE>
<CNT>22</CNT>
<AT_STAGE>Stage3</AT_STAGE>
<CNT>0</CNT>
</TRACKING>
What I need it to know is if the count (CNT) is greater than zero set a variable to true.
So in this case I would get:
$Stage1 = true;
$Stage2 = true;
$Stage3 = false;
I've tried several different ways to do this using the XML functions, but seem to get stuck because contidition needs to be aware of two of the data elements.
I could do this with a regular expression but I will be getting all my data from Oracle this way and need to be able handle it as XML.
Any ideas??
-Kevin