# Xml loads locally but not online

**URL:** <https://forum.kirupa.com/t/xml-loads-locally-but-not-online/301249>\
**Category:** flash\
**Created:** [December 6, 2009, 2:34am UTC](https://forum.kirupa.com/t/xml-loads-locally-but-not-online/301249 "2009-12-06T02:34:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdsflash](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jdsflash](https://forum.kirupa.com/u/jdsflash)\
**Post date:** [December 6, 2009, 2:34am UTC](https://forum.kirupa.com/t/xml-loads-locally-but-not-online/301249/1 "2009-12-06T02:34:02Z")

</div>

Im trying to load xml files on another domain on mine. This code works locally but not when i post it to my server. Can you explain what im doing wrong?  
The url im trying to load  
[http://hosting.gmodules.com/ig/gadgets/file/104669397770226988718/p-flash-chess-III-games-z-html.xml](http://hosting.gmodules.com/ig/gadgets/file/104669397770226988718/p-flash-chess-III-games-z-html.xml)

```auto
 
function parse() {
 xmlData2 = new XML();
 xmlData2.ignoreWhite = true;
 xmlData2.onLoad = loadXML2;
 function loadXML2(loaded) {
  testin += "loading222"+newline;
  if (loaded) {
   xmlData2 = this.firstChild;
   surveylen = xmlData2.childNodes.length;
   Title = xmlData2.firstChild.firstChild.attributes.title;
   Des = xmlData2.firstChild.firstChild.attributes.description;
   screenshot = xmlData2.firstChild.firstChild.attributes.screenshot;
   testin += "xmlData2 = "+xmlData2;
  } else {
  }
 }
 xmlData2.load(_root.submitedUrl);
}

```
