# Matching XML lists?

**URL:** <https://forum.kirupa.com/t/matching-xml-lists/277400>\
**Category:** flash\
**Created:** [December 11, 2008, 3:58pm UTC](https://forum.kirupa.com/t/matching-xml-lists/277400 "2008-12-11T15:58:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanCremona](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Post date:** [December 11, 2008, 3:58pm UTC](https://forum.kirupa.com/t/matching-xml-lists/277400/1 "2008-12-11T15:58:50Z")

</div>

Hi All,

I have a Events List, and a Players list.

An Event can have players:  
\<profilename\>Scottie Naoise\</profilename\>  
\<profilename\>Kenny Hubert\</profilename\>

Whilst the Player list contains all the players:  
\<profilename\>Scottie Naoise\</profilename\>  
\<profilename\>Nicholas Amédée\</profilename\>  
\<profilename\>Ulrich Cai\</profilename\>  
\<profilename\>Lennie Kentigern\</profilename\>  
\<profilename\>Xander Déodat\</profilename\>  
\<profilename\>Kenny Hubert\</profilename\>  
\<profilename\>Lieven Marcellin\</profilename\>  
\<profilename\>Yanick Isidore\</profilename\>

```auto

    trace("profilename player" + xml..profilename)
    trace("profilename event" + xml..player)

```

How can I compare both lists to load up the matching Players?

Thanks,  
Ian
