# Xml loading problem with path

**URL:** <https://forum.kirupa.com/t/xml-loading-problem-with-path/242963>\
**Category:** flash\
**Created:** [November 1, 2007, 2:17am UTC](https://forum.kirupa.com/t/xml-loading-problem-with-path/242963 "2007-11-01T02:17:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitchelvase](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mitchelvase](https://forum.kirupa.com/u/mitchelvase)\
**Post date:** [November 1, 2007, 2:17am UTC](https://forum.kirupa.com/t/xml-loading-problem-with-path/242963/1 "2007-11-01T02:17:45Z")

</div>

Hi there,

I have got a problem with my swf hope you guys can help me!

i have a swf it’s called page.swf this swf loades other swf’s by using a xml file named pages.xml

nothing go’s wrong here, but if i load a swf movie in the page.swf that also loads a xml, the path is different.

tis is my map structure

[pages]  
page.swf  
pages.xml

pages contains  
[page1]  
[page2]  
[page3]

page1 contains  
picture.swf  
picture.xml  
picture.jpg

if i go to pages/page1/picture.swf

the swf loads picture.jpg into picture.swf by using the xml

but if i open page.swf he loads picture.swf but then he quites loading, because he can’t find the xml, if i put picture.xml in the same directory as page.swf he loads everything. Is there a way to load picture.xml without moving it?

I can’t ajust the code xmlData.load(“picture.xml”); into xmlData.load(“pages/page1/picture.xml”); because page is a variable.

grzt
