Hi, Im using a for statment to run through the “event” items in the below xml. If I was looking for the event that’s time was “morning” I would create an if statment in the for statment to look for it.
Is their an easier way than that? can i get the event that’s time is set to morning directly?
Or am i doing it correctly using a for with an if statement init.
Thanks
Aidan
[COLOR=#000000][FONT=monospace]<events>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]<event time="morning">
<stuff>some stuff about morning</stuff>
</event>
<event time="afternoon">
<stuff>some stuff about afternoon</stuff>
</event>
<event time="evening">
<stuff>some stuff about evening</stuff>
</event>
[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]</events>[/FONT][/COLOR]