# XML reference problem

**URL:** <https://forum.kirupa.com/t/xml-reference-problem/303825>\
**Category:** Uncategorized\
**Created:** [January 27, 2010, 6:34pm UTC](https://forum.kirupa.com/t/xml-reference-problem/303825 "2010-01-27T18:34:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikingnm](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@Vikingnm](https://forum.kirupa.com/u/Vikingnm)\
**Post date:** [January 27, 2010, 6:34pm UTC](https://forum.kirupa.com/t/xml-reference-problem/303825/1 "2010-01-27T18:34:09Z")

</div>

I’m trying to get a conditional attribute list and keep getting this error  
ReferenceError: Error #1065: Variable @title is not defined.

tried examples…  
trace("1 - "+myXML.video.@title);  
trace("2 - "+myXML.video.(@title == “foo”));  
trace("3 - "+myXML.video.@title.name);  
trace("4 - "+myXML.video.(@title == “foo”).name);  
1 - gives me the list (as string) of all video titles  
2 - gives me the error  
3 - gives me an empty response, shouldn’t this be the name tag value?  
I also tried @title[0] to try and get the first “foo” listed  
4 - gives me the error

The reference is from a tutorial here…  
[http://www.kirupa.com/developer/flashcs3/using\_xml\_as3\_pg6.htm](http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg6.htm)

using Flash CS4 and actionscript 3

I’m not sure what i’m doing wrong here
