Comparing teo XML files?

Hello all,

I have 2 XML file, one is an events file and the other is a player file.

I would like

Events:

            <event id="002">
                <name><![CDATA[EPT Barcelona Open1]]></name>
                <xpos>217</xpos>
                <ypos>95</ypos>
                <players>
                    <player name="Scottie Naoise">Bob2</player>
                    <player name="Jess">Jess</player>
                    <player name="Ben">Ben</player>
                    <player name="Kim">Kim</player>
                    <player name="Sandy">Sandy</player>
                </players>    
                <tab><![CDATA[Germany]]></tab>
                <tab><![CDATA[Wuerzburg]]></tab>
                <tabDetails><![CDATA[<img src="http://www.poker.cc/media/images/active/profiles/profile-nathanael.jpg" align='left' hspace='0' vspace='0'  id = "YOUMUSTINCLUDETHIS"/><br /><br /><br /><br /><br /><br /><br />Although i was interested in a variety of subjects, i didn&#180;t really like to go to school. After i graduated with "Abitur", i emigrated out to New York. Since i&#180;ve played a lot of competitive chess, i got to know players, who successfully started playing poker. After a lot of skepsis (is it a "skill game", are the sites "rigged" etc) i started to deposit and play. In the beginning i learned a lot, but eventually i began to stagnate, until i reached a big milestone. I had 3000$ on my account, when my neighbour visited me and asked if i could show him how to play. After declining and telling him i&#180;m tired, he convinced me to start some play money games. I opened some 10-20NL tables and couldnt wait to show him how i can outplay all those newbies;).j It worked out quite well and i quickly ran it up to 20.000$ . As i was getting more tired i went blindly all in every hand until i lost everything - i mean, you can&#180;t buy anything from play money, right?! . Well, getting up the next day, i thought that i&#180;m still half asleep, since my balance showed me 0,03$. The conspiracy theories with hackers, government and whatever didnt turn out to be a good explanation. It took me a whopping half hour to realise what had happened the last night. The reader might already know it. After having a long frustrated shower, i took my last $500 and pledged to myself that i will not give up and fight myself back into the games. 4 weeks later i was lucky enough to win the tournament leader board (on pokerstars) and the following heads up match versus Tom McEvoy. This was the time where i decided to "go pro". What i like about poker is the enormous psychological pressure and the strategic part of the game. 'Poker' has realized many dreams for me like travelling the world. In my spare time i love to play endlessly piano for relaxation. I also like to do endurance and action sports (Triathlon, Tennis, Soccer,Ski) with friends. Alongside playing poker, i&#180;d like to keep on learning more languages and studying philosophy.]]></tabDetails>
                <tabDetails><![CDATA[Results:<br/>EPT Budapest - 67th Place<br/> View Nathanael Chilipoker Team Blog at <a href='http://www.chilipoker.tv' TARGET="_blank"><b><u>http://www.chilipoker.tv</u></b></a><br /><br /><b>Spice up your game!</b>]]></tabDetails>
            </event>
            
            <event>
                <name><![CDATA[EPT London]]></name>
                <xpos>118</xpos>
                <ypos>46</ypos>    
                <tab><![CDATA[Germany]]></tab>
                <tab><![CDATA[Wuerzburg]]></tab>
                <tabDetails><![CDATA[<img src="http://www.poker.cc/media/images/active/profiles/profile-nathanael.jpg" align='left' hspace='0' vspace='0'  id = "YOUMUSTINCLUDETHIS"/><br /><br /><br /><br /><br /><br /><br />Although i was interested in a variety of subjects, i didn&#180;t really like to go to school. After i graduated with "Abitur", i emigrated out to New York. Since i&#180;ve played a lot of competitive chess, i got to know players, who successfully started playing poker. After a lot of skepsis (is it a "skill game", are the sites "rigged" etc) i started to deposit and play. In the beginning i learned a lot, but eventually i began to stagnate, until i reached a big milestone. I had 3000$ on my account, when my neighbour visited me and asked if i could show him how to play. After declining and telling him i&#180;m tired, he convinced me to start some play money games. I opened some 10-20NL tables and couldnt wait to show him how i can outplay all those newbies;).j It worked out quite well and i quickly ran it up to 20.000$ . As i was getting more tired i went blindly all in every hand until i lost everything - i mean, you can&#180;t buy anything from play money, right?! . Well, getting up the next day, i thought that i&#180;m still half asleep, since my balance showed me 0,03$. The conspiracy theories with hackers, government and whatever didnt turn out to be a good explanation. It took me a whopping half hour to realise what had happened the last night. The reader might already know it. After having a long frustrated shower, i took my last $500 and pledged to myself that i will not give up and fight myself back into the games. 4 weeks later i was lucky enough to win the tournament leader board (on pokerstars) and the following heads up match versus Tom McEvoy. This was the time where i decided to "go pro". What i like about poker is the enormous psychological pressure and the strategic part of the game. 'Poker' has realized many dreams for me like travelling the world. In my spare time i love to play endlessly piano for relaxation. I also like to do endurance and action sports (Triathlon, Tennis, Soccer,Ski) with friends. Alongside playing poker, i&#180;d like to keep on learning more languages and studying philosophy.]]></tabDetails>
                <tabDetails><![CDATA[Results:<br/>EPT Budapest - 67th Place<br/> View Nathanael Chilipoker Team Blog at <a href='http://www.chilipoker.tv' TARGET="_blank"><b><u>http://www.chilipoker.tv</u></b></a><br /><br /><b>Spice up your game!</b>]]></tabDetails>
            </event>

Players:


<player quote=" &quot; The guy who invented poker was bright, but the guy who invented the chip was a genius. &quot; ">
    <xpos>217</xpos>
    <ypos>95</ypos>    
    <name><![CDATA[Scottie Naoise ]]></name>
    <headline><![CDATA[Dynamic xml news reader. Easily change the appearance from the librar d ynamic xml news reader. Easily change the appearance from the library and modify the content from the XML.]]></headline>
    <article><![CDATA[XML News Reader V2.0 allows you to set the xml path to be loaded, the x and y position of the news reader, the width of the news reader, the number of the tabs to display the spacing between each news tab and the buttons in the info bar, the sliding transition time and type.<br><br>HTML tags are supported. You can put words in <u>UNDERLINED</u>, change the <font color="#6699ff">COLOR</font> or make a <a href="http://flashden.net/user/wannax"><font color="#ffffff">HYPERLINK</font></a>.]]></article>
    <thumb>data/1_t.jpg</thumb>
    <image>data/1.jpg</image>
</player>

I would like to load up an Event’s players and the players ID

var test = "ID= " + xmlList..event[0].players.player.@name;

. compare the two, and load the relative players. Does anyone know of a good tutorial I can follow (or can someone help me out themselves)?