Working with E4X operators

I’m trying to pick out the full “player” profile (xml…profilename) information about the player when the name matches eventPlayer - but all I am getting is “True” or “False” - What am I doing wrong?


XML Structure:

<?xml version="1.0" encoding="ISO-8859-15"?>

<map>

<player_profiles>

<profile quote="">
    <xpos></xpos>
    <ypos></ypos>    
    <profilename></profilename>
    <profilelocation></profilelocation>
    <headline></headline>
    <article></article>
    <results></results>
    <thumb></thumb>
    <image></image>
    <flag></flag>
</profile>

</player_profiles>

<eventsTitle>
        <eventsTitleName>
            <name></name>
                        
            <event>
                <name></name>
                <xpos></xpos>
                <ypos></ypos>
                <players>
                    <player></player>
                    <player></player>
                    <player></player>
                    <player></player>
                </players>
                <tab></tab>
                <tab></tab>
                <tabDetails></tabDetails>
                <tabDetails></tabDetails>
                <flag></flag>
            </event>
            
                
        </eventsTitleName>
    </eventsTitle>
</map>

 ActionScript Code:
 [LEFT][COLOR=#000000]**function**[/COLOR] testButtonClick[COLOR=#000000]([/COLOR]event:MouseEvent[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]

[COLOR=#0000ff]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]**var**[/COLOR] i:uint=[COLOR=#000080]0[/COLOR]; i&lt;xmlList.[COLOR=#000080]eventsTitleName[/COLOR].[COLOR=#000080]event[/COLOR].[COLOR=#0000ff]length[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; i++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
    
    [COLOR=#0000ff]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]**var**[/COLOR] p:uint=[COLOR=#000080]0[/COLOR]; p&lt;xmlList.[COLOR=#000080]eventsTitleName[/COLOR].[COLOR=#000080]event[/COLOR][COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#000080]players[/COLOR].*.[COLOR=#0000ff]length[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; p++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]

        eventPlayer = xmlList.[COLOR=#000080]eventsTitleName[/COLOR].[COLOR=#000080]event[/COLOR][COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#000080]players[/COLOR].[COLOR=#000080]player[/COLOR][COLOR=#000000][[/COLOR]p[COLOR=#000000]][/COLOR];
        


        [COLOR=#0000ff]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]**var**[/COLOR] j:uint=[COLOR=#000080]0[/COLOR]; j&lt;xml..[COLOR=#000080]profilename[/COLOR].*.[COLOR=#0000ff]length[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; j++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]

            [COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]xml[/COLOR]..[COLOR=#000080]profilename[/COLOR][COLOR=#000000][[/COLOR]j[COLOR=#000000]][/COLOR].[COLOR=#000000]([/COLOR][COLOR=#0000ff]name[/COLOR] == eventPlayer[COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];

        [COLOR=#000000]}[/COLOR]
        
    [COLOR=#000000]}[/COLOR]
    [COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]"========"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]

[COLOR=#000000]}[/COLOR]
[/LEFT]