# Conditions with AS3 and XML

**URL:** <https://forum.kirupa.com/t/conditions-with-as3-and-xml/323484>\
**Category:** flash\
**Created:** [July 3, 2011, 4:13pm UTC](https://forum.kirupa.com/t/conditions-with-as3-and-xml/323484 "2011-07-03T16:13:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenDoliveira](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rubendoliveira/32/3905_2.png) [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Post date:** [July 3, 2011, 4:13pm UTC](https://forum.kirupa.com/t/conditions-with-as3-and-xml/323484/1 "2011-07-03T16:13:58Z")

</div>

Hi again,

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

Having something like this in my XML:

```auto

<?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.

```auto

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

```auto

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

```

Any ideas?

Thanks in advance
