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 :
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
<div class="matchR1-wrapL">
<game id='1'></game>
</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!!!