# XML pathing problem

**URL:** <https://forum.kirupa.com/t/xml-pathing-problem/75928>\
**Category:** flash\
**Created:** [January 13, 2005, 7:55am UTC](https://forum.kirupa.com/t/xml-pathing-problem/75928 "2005-01-13T07:55:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MsKitten](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MsKitten](https://forum.kirupa.com/u/MsKitten)\
**Post date:** [January 13, 2005, 7:55am UTC](https://forum.kirupa.com/t/xml-pathing-problem/75928/1 "2005-01-13T07:55:16Z")

</div>

Please can someone help. I have a sef file loading images via xml. This is working perfectly. When I load this swf into another file it stops working. I cannot figure out what path to change.  
If anywaone is able to help me I would be greatful.

This is the what it looks like:

// LOAD XML PAGE  
loadXML(“GoXML”, “xml/badges.xml”, loadpics);  
function loadpics() {  
var firstNode = GoXML.firstChild;  
NodeNumber = firstNode.childNodes.length;  
for (var i = 0; i\<NodeNumber; i++) {  
// LOAD THE IMAGE  
\_root[“theImage”+i] = firstNode.childNodes\*.attributes[“image”];  
// LOAD THE LINK  
\_root[“theLink”+i] = firstNode.childNodes\*.attributes[“link”];  
// LOAD THE CAPTION  
\_root[“theCaption”+i] = firstNode.childNodes\*.attributes[“caption”];  
}  
\_root.loadAllImages();  
}  
function loadAllImages() {  
loadMovie(\_root.theImage0, ImageMC);  
loadMovie(\_root.theImage1, \_root.Image1MC);  
loadMovie(\_root.theImage2, \_root.Image2MC);  
\_root.txtCaption.text = theCaption0;  
}  
And it doesnt work once I have loaded it into a target clip called “badges.pos”

Please please help
