# XML Help

**URL:** <https://forum.kirupa.com/t/xml-help/304094>\
**Category:** Uncategorized\
**Created:** [February 1, 2010, 5:39pm UTC](https://forum.kirupa.com/t/xml-help/304094 "2010-02-01T17:39:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCampos021](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@JCampos021](https://forum.kirupa.com/u/JCampos021)\
**Post date:** [February 1, 2010, 5:39pm UTC](https://forum.kirupa.com/t/xml-help/304094/1 "2010-02-01T17:39:27Z")

</div>

```auto
begin = "http://gd2.mlb.com/components/game/win/year_2010/month_01/day_30/";
end = "/plays.xml";
function loadXML(loaded) {
 if (loaded) {
  xmlNode = this.firstChild;
  gameday = [];
  gdLink = [];
  total = xmlNode.childNodes.length;
  for (i=0; i<total; i++) {
   gameday* = xmlNode.childNodes*.attributes.gameday_link;
   gdLink* = begin + 'gid_' + gameday* + end;
   }
  games();
 } else {
  gotoAndStop(2);
 }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://gd2.mlb.com/components/game/win/year_2010/month_01/day_30/miniscoreboard.xml");
function games() {
 for (b=0; b<total; b++) {
  xmlData2 = new XML();
  xmlData2.ignoreWhite = true;
  xmlData2.onLoad = loadXML;
  xmlData2.load(gdLink[0]);
}
}

```

not sure if this will help any more but that is the code that i am using so far. As of right now when i try to get gdLink\*\* to use the link it gives me an undefined where the gameday information should be…

Error opening URL “[http://gd2.mlb.com/components/game/win/year\_2010/month\_01/day\_30/gid\_undefined/plays.xml](http://gd2.mlb.com/components/game/win/year_2010/month_01/day_30/gid_undefined/plays.xml)”

where the undefined is should be: 2010\_01\_30\_herwin\_mazwin\_1, which is what i got from the first xml file…

any help would be appreciated… thank you
