Loading images through xml problem?

I’m having a problem being able to display an external image using xml, I have it set up so that once it loads it is put into an emtpy mc on the stage. I’ve been looking at the xml photogallery tutorial and I can’t see anything wrong?

The actionscript is this:

function loadXML(loaded) { 
if (loaded) { 
bgImg = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
background_img.loadMovie(bgImg, 1);
} else { 
trace("file not loaded!"); 
} 
} 
xmlData = new XML(); 
xmlData.ignoreWhite = true; 
xmlData.onLoad = loadXML; 
xmlData.load("background.xml");

And the xml looks like this:

 <?xml version="1.0"?>
<background>
<image>background.jpg</image>
</background> 

The problem is that I keep getting an output of “Error opening URL” it then shows the absolute directory to where my file is saved and at the end says undefined.

Cheers,
Inept