# Xml image issues

**URL:** <https://forum.kirupa.com/t/xml-image-issues/269381>\
**Category:** Uncategorized\
**Created:** [August 26, 2008, 8:29pm UTC](https://forum.kirupa.com/t/xml-image-issues/269381 "2008-08-26T20:29:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy\_nugz](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@billy\_nugz](https://forum.kirupa.com/u/billy_nugz)\
**Post date:** [August 26, 2008, 8:29pm UTC](https://forum.kirupa.com/t/xml-image-issues/269381/1 "2008-08-26T20:29:34Z")

</div>

Hey Im using AS2/cs3  
Ok so basicaly I will have a bunch of questions in dealing with xml in this thread. First problem, I cant seem to get my images to display properly.  
this is what im doing.

my xml

[LEFT]

```auto
 
<?xml version="1.0" encoding="ISO-8859-1"?>

<icons>
<image name="icon1"><![CDATA[icons/poolTab.swf]]></image>
<image name="icon2"><![CDATA[icons/couch2Seat.swf]]></image>
<image name="icon3"><![CDATA[icons/poolTab.swf]]></image>
<image name="icon2"><![CDATA[icons/couch2Seat.swf]]></image>
</icons>

```

[/LEFT]

MyAS

[LEFT]

```auto
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.load("xmlphoto.xml");
myXML.onLoad = function(success) {
if (success) {
var myImage = myXML.firstChild.childNodes ;
for (i=0; i<myImage.length; i++) {
var imageNumber = i+1;
var imageName = myImage*.attributes.title;
var imageURL = myImage*.firstChild.nodeValue;
trace ("My image number "+imageNumber+" is titled "+imageName+" and its URL is "+imageURL+".")
picHolder.loadMovie(imageURL, 1);
}
}
};

```

[/LEFT]

I can trace the nodes fine but they all load on top of eachother and I would like to have them in a vertical line (acually 2 vertical lines but one thing at a time i guess)

Any help would be great.
