# E4X troubles

**URL:** <https://forum.kirupa.com/t/e4x-troubles/241463>\
**Category:** flash\
**Created:** [October 14, 2007, 1:31pm UTC](https://forum.kirupa.com/t/e4x-troubles/241463 "2007-10-14T13:31:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smeee](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/smeee/32/2805_2.png) [@smeee](https://forum.kirupa.com/u/smeee)\
**Post date:** [October 14, 2007, 1:31pm UTC](https://forum.kirupa.com/t/e4x-troubles/241463/1 "2007-10-14T13:31:57Z")

</div>

I originally posted this in the flash cs3 thread but I think it belongs here, sorry for the dupe!

I have an XMLList in the format:

```auto
<node>
  <inner>
      <item att="blue">
      <item att="red">
      <item att="green">
  </inner>
</node>
<node>
  <inner>
      <item att="orange">
      <item att="blue">
      <item att="yellow">
  </inner>
</node>
...

```

and I would like to return all nodes that have an attribute of a given value. For example if given “blue” I would want a return of an XMLList containing both nodes where “orange” would just return the second node. As far as I can figure it would be something like

```auto
myXMLList.(node.inner.*.@* == "blue");

```

but his does not work. If I name the attributes differently on every ‘item’ node it does work. I know I’m doing something wrong but can’t pinpoint it. Is it possible to do this in a short syntax or does this require looping? Thanks in advance!
