I'm having trouble using a structured file to save the top 3 high scores from a scene. Every time the scene is run, the values are being written in the XML separately. In other words, instead of overwriting the existing scores, it just creates a separate set of scores. I can't figure out what I'm doing wrong.
After playing the level/scene 3 times: