# \[AS2\] - Problem with loading XML file

**URL:** https://forum.kirupa.com/t/as2-problem-with-loading-xml-file/198810
**Category:** flash
**Created:** [August 28, 2006, 9:29pm UTC](https://forum.kirupa.com/t/as2-problem-with-loading-xml-file/198810 "2006-08-28T21:29:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hued](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@hued](https://forum.kirupa.com/u/hued)
#### Post date: [August 28, 2006, 9:29pm UTC](https://forum.kirupa.com/t/as2-problem-with-loading-xml-file/198810/1 "2006-08-28T21:29:00Z")

</div>

[FONT=Georgia]I’m using this code to load an XML document.

[/FONT]

```auto

function gatherXmlData():Void {
        var calendarData:XML = new XML();
        var currentCalendarData:Array = new Array();
        var inc:Number = new Number(0);
        
        calendarData.ignoreWhite = true;
        calendarData.load("http://localhost/curves/calendar/admin/calendar.xml");
        
        if (calendarData.onLoad) {
            trace("bytes loaded " + calendarData.getBytesLoaded());
        }
    }

```

right now, i get this output:

```auto
bytes loaded 0

```

now, the file is in the folder because i don’t get an error, but it won’t load the file. at least it won’t load any of the nodes. 😟

any help is definitely appreciated and will be noted in future encounters.
