Matching XML lists?

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>


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

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

Thanks,
Ian