# XML Load Problem

**URL:** <https://forum.kirupa.com/t/xml-load-problem/248943>\
**Category:** Uncategorized\
**Created:** [January 13, 2008, 8:37pm UTC](https://forum.kirupa.com/t/xml-load-problem/248943 "2008-01-13T20:37:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starkindler](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Starkindler](https://forum.kirupa.com/u/Starkindler)\
**Post date:** [January 13, 2008, 8:37pm UTC](https://forum.kirupa.com/t/xml-load-problem/248943/1 "2008-01-13T20:37:58Z")

</div>

## I am making a flash website and trying to load and display an XML file, but nothing comes up. I’m not an expert at actionscript but I can usually figure my way through it, but it seems like I’ve met my match here. I want to take the data of an XML file and display it on a page of my site, but nothing’s showing up. Here’s the code I’m using:

wmXML = new XML();  
wmXML.load(“dirlist.xml”);  
wmXML.ignoreWhite = true;  
wmXML.onLoad=extractData;

## function extractData(success){ rootHandler=this.firstChild.childNodes; nodeHandler=rootHandler[0].childNodes; source=nodeHandler[0].firstChild.nodeValue; }

## Here’s the beginning of the XML file:

## \<?xml version=“1.0” encoding=“UTF-8” ?\> \<filename\>Ballroom class final - Salsa.mp4\</filename\> \<filename\>Ballroom class final - swing.mp4\</filename\> \<filename\>Clark Cruise '07.mov\</filename\> \<filename\>Freshmen Retreat (web).mov\</filename\> \<filename\>Gospel Choir in Chapel 10-24-07.MPG\</filename\>

Can you help tell me what I’m doing wrong?? Thanks a million,  
Starkindler
