Wondering bout this functionality.

Wondering bout this functionality.

Ok, essentially what I'd like to do is this. I want to take data that, at some point will be "aggregate" data in an XML file (think a score in baseball. You score 1 run in the first inning, and 1 run in the 3rd, you now have two runs).

I'm working on a play-by-play system, just for fun, but I just want to get the LATEST score from the XML, along with ALL relevant plays up to that point.

So if a baseball game is in the 5th inning, And Team A has 4, Team B has 3, I ONLY want to get the score total, but I might want to have something like

Team A Player #4 singles to center
Team A player #12 doubles to left-center, team A player #4 scores.
Team A player #44 strikes out..

And so forth...

My main concern isn't getting the play by play part. It's getting the TOTAL score.

I'm VERY new to jQuery. Any thoughts on how I might go forward with this? Obviously, I could just use the JS and jQuery to add up the score every time, but I'd really like to NOT take that approach.