# Xml load problem

**URL:** https://forum.kirupa.com/t/xml-load-problem/298608
**Category:** Uncategorized
**Created:** [October 21, 2009, 8:57pm UTC](https://forum.kirupa.com/t/xml-load-problem/298608 "2009-10-21T20:57:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![patrickjv](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@patrickjv](https://forum.kirupa.com/u/patrickjv)
#### Post date: [October 21, 2009, 8:57pm UTC](https://forum.kirupa.com/t/xml-load-problem/298608/1 "2009-10-21T20:57:04Z")

</div>

I’m stumbling upon a strang phenomena. Locally my file works ok every time, only from server it behaves completely weird.

I have a xml mp3 player which loads xml data from file. But from server it get’s stuck not loading the xml file properly. And I’ve noticed that many times if I first view the xml file in browser then after that when viewing the html/swf file it DOES load properly.

code of the xml part;

```auto
public var myXML:XML
public var mySongs:XMLList;
public var loader = new URLLoader(); 
public var urlreq:URLRequest;

```

then it should load the xml file name from variable xmlmusicdatafile into a loader

```auto
urlreq = new URLRequest(xmlmusicdatafile);
loader.load(urlreq);
loader.addEventListener(Event.COMPLETE, setinit);    
loader.addEventListener(ProgressEvent.PROGRESS, showxmlloadprogress); 

```

If I trace(loader) right after .load it does trace [object URLLoader] but neither function setinit() nor function showxmlloadprogress() is being executed. It hangs on loading the xml file.

The xml code by the way is simple

```auto
<?xml version="1.0" encoding="utf-8"?>
<musiclist>
  <musicitem>
    <itemname>life-is-creative-patrick-jansen.mp3</itemname>
    <title>life is creative</title>
    <artist>Patrick Jansen</artist>
    <album />
    <link>http://marketplace.envato.com/user/patrickjansen/portfolio</link>
  </musicitem>
</musiclist>

```

If anybody has any clue or idea i’d appreciate it.

I’m stuck in a black hole of knowing the xml load action has been triggered but the xml file never really started loading (showxmlloadprogress never starts tracing anything)

Any suggestions?  
P.
