# XML problem

**URL:** <https://forum.kirupa.com/t/xml-problem/208695>\
**Category:** Uncategorized\
**Created:** [December 1, 2006, 8:57am UTC](https://forum.kirupa.com/t/xml-problem/208695 "2006-12-01T08:57:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnnaAngel](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@AnnaAngel](https://forum.kirupa.com/u/AnnaAngel)\
**Post date:** [December 1, 2006, 8:57am UTC](https://forum.kirupa.com/t/xml-problem/208695/1 "2006-12-01T08:57:48Z")

</div>

Hi

I’ve got a swf with an XML connection and everything works fine. But now I want to load this swf in an other swf… this works to… but now I want to use the xml and that doesn’t work…

my xml is like this :

```auto
var animal_xml = new XML();
//ignore whitespaces
animal_xml.ignoreWhite = true;
animal_xml.onLoad = function(success:Boolean){
  if (success) {make_animal();
       make_bg();
      }
  else { trace("Error loading XML file");
   error();}
}

```

and I am loading this swf file in a holder in an other file:

```auto
var mclListener: Object = new Object()
mclListener.onLoadInit = function (target_mc:MovieClip) {trace(target_mc.animal_xml.firstChild.firstChild.length)}
 
var mcLoader:MovieClipLoader = new MovieClipLoader()
mcLoader.addListener(mclListener)
mcLoader.loadClip("main.swf", animal)

```

the swf with the xml code is loading in my fla… but I cannot connect to the xml… i cannot use it… can somebody tell me if this is possible? and more important how 😉

thanks in advance
