Conditions with AS3 and XML

Hi again,

I’m having some difficulties using conditions with XML and AS3.

Having something like this in my XML:


<?xml version="1.0"?>
<schedule>
	<class>
		<name day="monday">AAA</name>
		<time day="monday">9h30</time>
	</class>
	<class>
		<name>BBB</name>
		<time>10h30</time>
	</class>
</schedule

How do I trace classes from Monday?

I get no error but nothing in return. No trace.


trace (xmlData.schedule.class.name.(@day=="monday"));
trace (xmlData.schedule.class.time.(@day=="monday"));

I get an error which says that variable @day is not defined


trace (xmlData.class.name.(@day=="monday"));
trace (xmlData.class.time.(@day=="monday"));

Any ideas?

Thanks in advance