0
<RecentGames>
    <XboxUserGameInfo>
      <Game>
        <Name>Plants vs. Zombies</Name>
        <TotalAchievements>12</TotalAchievements>
        <TotalGamerScore>200</TotalGamerScore>     
      </Game>
      <LastPlayed>2010-11-08T04:01:33+00:00</LastPlayed>
      <Achievements>1</Achievements>
      <GamerScore>10</GamerScore>
    </XboxUserGameInfo>

    <XboxUserGameInfo>
      <Game>
        <Name>Kinect Sports</Name>
        <TotalAchievements>50</TotalAchievements>
        <TotalGamerScore>1000</TotalGamerScore>
      </Game>
      <LastPlayed>2010-11-08T01:46:06+00:00</LastPlayed>
      <Achievements>0</Achievements>
      <GamerScore>0</GamerScore>
    </XboxUserGameInfo>

    <XboxUserGameInfo>
     <Game>
        <Name>Halo: Reach</Name>
        <TotalAchievements>49</TotalAchievements>
        <TotalGamerScore>1000</TotalGamerScore>
      </Game>
      <LastPlayed>2010-11-07T18:37:13+00:00</LastPlayed>
      <Achievements>23</Achievements>
      <GamerScore>245</GamerScore>
    </XboxUserGameInfo>
</RecentGames>

How do I read the different Information of each node even though the nodes are named the same?

Edit: I'm new to reading XML and this particular part has stumped me.

Edited by scopen4: Adding some more information.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by robreckless
0

You could reference the XboxUserGameInfo nodes as numeric indexes rather than node name, then you should be able to use the node name for the children of each XboxUserGameInfo.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.