# XML isn't loading in FF

**URL:** <https://forum.kirupa.com/t/xml-isnt-loading-in-ff/293708>\
**Category:** flash\
**Created:** [August 2, 2009, 3:57am UTC](https://forum.kirupa.com/t/xml-isnt-loading-in-ff/293708 "2009-08-02T03:57:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![funkparliament](https://avatars.discourse-cdn.com/v4/letter/f/9fc29f/32.png) [@funkparliament](https://forum.kirupa.com/u/funkparliament)\
**Post date:** [August 2, 2009, 3:57am UTC](https://forum.kirupa.com/t/xml-isnt-loading-in-ff/293708/1 "2009-08-02T03:57:30Z")

</div>

Hi,

I am having trouble loading XML content from Firefox. At this very moment I have Safari and Firefox open: Safari works every time, and firefox is unpredictable. When I run the code from within Flash CS3 it works 100% of the time.

The XML contains the names of folders within a directory, and I’m turning that information into a menu.

Here is the AS3 code:

```auto

var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load(new URLRequest("http://*.com/xml/categories.php"));

myXMLLoader.addEventListener(Event.COMPLETE, processMenuXML);
function processMenuXML(e:Event):void {
    myMenuXML=new XML(e.target.data);
    my_sections = myMenuXML.section;
    my_sections_total = my_sections.length();
    createMenu();
}

```

categories.php returns this code:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<portfolio>
<section name="ANIMALS"></section>
<section name="LANDSCAPES"></section>
<section name="MISC"></section>
<section name="PORTRAITS"></section>
<section name="STREET"></section>
<section name="TRAVEL"></section>
</portfolio>

```

I have tried it with and without the XML Version/Encoding line, and I have also linked directly to a .xml file and neither has made a difference.

Any ideas?  
Thanks
