# XMLList - Major Problems!

**URL:** <https://forum.kirupa.com/t/xmllist-major-problems/281149>\
**Category:** flash\
**Created:** [February 5, 2009, 1:38pm UTC](https://forum.kirupa.com/t/xmllist-major-problems/281149 "2009-02-05T13:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikehmc](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mikehmc](https://forum.kirupa.com/u/mikehmc)\
**Post date:** [February 5, 2009, 1:38pm UTC](https://forum.kirupa.com/t/xmllist-major-problems/281149/1 "2009-02-05T13:38:20Z")

</div>

I have a **real** problem with the following code:

[AS]  
var xml\_a:XMLList = XMLContainer.getXML().cargo.popup;  
trace(xml\_a); //trace one  
trace( xml\_a.(@user == “china”) ); //trace two  
var xml\_b:XMLList = xml\_a.(@user == “china”);  
trace(xml\_b); //trace three  
[/AS]

[COLOR=“Red”] **THE PROBLEM:** [/COLOR]  
Basically, ‘Trace Three’ returns null, while ‘Trace Two’ returns a valid xml list. Am I going crazy here?

:eek:

Full output below:

Trace one returns the following:

```auto

<popup user="africa">
    <label>1</label>
</popup>
<popup user="africa">
    <label>2</label>
</popup>
<popup user="africa">
    <label>3</label>
</popup>
<popup user="africa">
    <label>4</label>
</popup>
<popup user="china">
    <label>1</label>
</popup>
<popup user="china">
    <label>2</label>
</popup>
<popup user="china">
    <label>3</label>
</popup>
<popup user="china">
    <label>4</label>
</popup>
<popup user="gulf">
    <label>1</label>
</popup>
<popup user="gulf">
    <label>2</label>
</popup>
<popup user="gulf">
    <label>3</label>
</popup>
<popup user="gulf">
    <label>4</label>
</popup>
<popup user="india">
    <label>1</label>
</popup>
<popup user="india">
    <label>2</label>
</popup>
<popup user="india">
    <label>3</label>
</popup>
<popup user="india">
    <label>4</label>
</popup>

```

Trace Two returns:

```auto

<popup user="china">
    <label>1</label>
</popup>
<popup user="china">
    <label>2</label>
</popup>
<popup user="china">
    <label>3</label>
</popup>
<popup user="china">
    <label>4</label>
</popup>

```

Trace Three:

```auto
null

```

_Apologies for cross posting in [actionscript.net](http://actionscript.net)_
