# E4X filter on attribute with "reserved" name

**URL:** https://forum.kirupa.com/t/e4x-filter-on-attribute-with-reserved-name/251455
**Category:** flash
**Created:** [February 8, 2008, 5:31pm UTC](https://forum.kirupa.com/t/e4x-filter-on-attribute-with-reserved-name/251455 "2008-02-08T17:31:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)
#### Post date: [February 8, 2008, 5:31pm UTC](https://forum.kirupa.com/t/e4x-filter-on-attribute-with-reserved-name/251455/1 "2008-02-08T17:31:27Z")

</div>

I have and odd situation - I’m filtering on an attribute named “class” in XML:

```auto
 
filteredxml = MyItems.Item(@class=="whatever");

```

the problem is, flash is throwing a compile error based on the name of that attribute - “class”

is there a way to evaluate that attribute name to avoid this? I can change the attribute name in the XML.

thanks!
