# XML problem

**URL:** <https://forum.kirupa.com/t/xml-problem/197431>\
**Category:** Uncategorized\
**Created:** [August 16, 2006, 9:19am UTC](https://forum.kirupa.com/t/xml-problem/197431 "2006-08-16T09:19:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esq](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@Esq](https://forum.kirupa.com/u/Esq)\
**Post date:** [August 16, 2006, 9:19am UTC](https://forum.kirupa.com/t/xml-problem/197431/1 "2006-08-16T09:19:27Z")

</div>

Hi!

I have this problem with flash based tetris game. It stores the topten scores to xml -file. This used to work with flash 6 but now it wont work. Heres the code:

```auto

//Load the topten xml file
function loadXML(loaded) {

if (loaded) {

// Gets the the last (10th) value of the top ten from the xml file

_root.inventor = this.firstChild.childNodes[9].childNodes[0].firstChild.nodeValue;
_root.comments = this.firstChild.childNodes[9].childNodes[1].firstChild.nodeValue;
name_txt10.text = _root.inventor;
comment_txt10.text = _root.comments;

} else {
  trace("file not loaded!");

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("/topten/topten.xml");

// Checks if the gotten score is higher than the 10th place at the xml -file
//IF yes, go to writing procedure in frame 78 else continue
if (punkte > comment_txt10.text) {
    trace("highscore");
    gotoAndStop(78);
} else {
    trace("sorry, try again!");
    play();
    }

```

If ye have any idea why this wont work I´d appreciate it a lot. This just confuses/troubles a lot.

Thanks a lot in advance :0)

~esq~
