Parsing XML

Parsing XML

Hi all, I have a question regarding parsing my XML file. Here is the task at hand, I have created my css and html to properly display a tournament bracket.  Also, there is an XML file that contains all game information regarding, teams, winners and losers, as well as the game number.  At different spots in my HTML i have different games.  Here is a sample of my XML :

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <tournament xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. <game id="1">
  4. <home>USA</home>
  5. <away>Texas</away>
  6. <winner>USA</winner>
  7. <loser>Texas</loser>
  8. </game>
  9. <game id="2">
  10. <home>Jamaica</home>
  11. <away>Beermuda</away>
  12. <winner>Beermuda</winner>
  13. <loser>Jamaica</loser>
  14. </game>
  15. <game id="3">
  16. <home>Rockaway</home>
  17. <away>Mexico</away>
  18. <winner>Winner Game 3</winner>
  19. <loser>Loser Game 3</loser>
  20. </game>
  21. <game id="4">
  22. <home>Argentina</home>
  23. <away>Cuba</away>
  24. <winner>Winner Game 4</winner>
  25. <loser>Loser Game 4</loser>
  26. </tournament>

here is my issue.  I need to be able to reference each distinct game and it's information at different points as teams traverse (win/lose) the bracket.  Here is my current code  http://jsfiddle.net/jVQLE/
As you can see I can only pass the first match, and if I include the second match in the XML, all the data is display in my Match wrapper.  
Any help what-so-ever is greatly appreciated.  I want to be able to reference a certain game in my HTML doing something like
  1. <div class="matchR1-wrapL">
  2.     <game id='1'></game> 
  3. </div>
and this displays game 1, and then do it again with id='2', and have that display game 2 information.  Am I on the right track or is this the wrong direction?  Thank you so much in advance!!!