PDA

Click to See Complete Forum and Search --> : Need a little help



yegua22
05-22-2001, 02:54 PM
I have the following xml data.


<?xml version="1.0" encoding="UTF-8"?>
<asc>
<phase>
<maxPhaseGroups>1</maxPhaseGroups>
<phaseStatusGroupTable>
<phaseStatusGroupEntry>
<phaseStatusGroupNumber>2</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry&gt

<phaseStatusGroupEntry>
<phaseStatusGroupNumber>1</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry&gt

<phaseStatusGroupEntry>
<phaseStatusGroupNumber>3</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry&gt

<phaseStatusGroupEntry>
<phaseStatusGroupNumber>2</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry>

<phaseStatusGroupEntry>
<phaseStatusGroupNumber>3</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry>

<phaseStatusGroupEntry>
<phaseStatusGroupNumber>4</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry>

<phaseStatusGroupEntry>
<phaseStatusGroupNumber>5</phaseStatusGroupNumber>
<phaseStatusGroupReds>255</phaseStatusGroupReds>
<phaseStatusGroupYellows>255</phaseStatusGroupYellows>
<phaseStatusGroupGreens>255</phaseStatusGroupGreens>
<phaseStatusGroupDontWalks>255</phaseStatusGroupDontWalks>
<phaseStatusGroupPedClears>255</phaseStatusGroupPedClears>
<phaseStatusGroupWalks>255</phaseStatusGroupWalks>
<phaseStatusGroupVehCalls>255</phaseStatusGroupVehCalls>
<phaseStatusGroupPedCalls>255</phaseStatusGroupPedCalls>
<phaseStatusGroupPhaseOns>255</phaseStatusGroupPhaseOns>
<phaseStatusGroupPhaseNexts>255</phaseStatusGroupPhaseNexts>
</phaseStatusGroupEntry>


</phaseStatusGroupTable>
</phase>
</asc>



My problem is that I need loop through and get the variable in the phaseStatusGroupNumber node for each one that is there and play a certain movie depending on what variable is there. My problem is I can only get to the first one and then that movie keeps playing? How can I keep going to the end of the file and get a different movie to play depending on teh variable I get. Thanks so much for any help.