# Xml picture loader error

**URL:** <https://forum.kirupa.com/t/xml-picture-loader-error/257033>\
**Category:** Uncategorized\
**Created:** [April 9, 2008, 5:34pm UTC](https://forum.kirupa.com/t/xml-picture-loader-error/257033 "2008-04-09T17:34:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gearvisual](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gearvisual](https://forum.kirupa.com/u/gearvisual)\
**Post date:** [April 9, 2008, 5:34pm UTC](https://forum.kirupa.com/t/xml-picture-loader-error/257033/1 "2008-04-09T17:34:05Z")

</div>

Hello. Here I have a code. But it seems not to work. I have a MC called an instanced as image on the first layer.

```auto
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function (loaded) {  

if (loaded) {

xmlNode = this.firstChild;
image = []; //piltide array
total= xmlNode.childNodes.length; 
for (i=0; i<otal; i++) {

image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
}
loadimage();
} else {
content = "no file";
}

}
xmlData.load("images.xml");

function loadimage() {
image.loadMovie(image[0], 1);

}

```

this is my xml

\<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
\<images\>

```
&lt;pic&gt;
    &lt;image&gt;1.jpg&lt;/image&gt;
&lt;/pic&gt;

```

\<pic\>  
\<image\>2.jpg\</image\>  
\</pic\>  
\<pic\>  
\<image\>3.jpg\</image\>  
\</pic\>

\</images\>

what is teh problem?
