# Xml

**URL:** <https://forum.kirupa.com/t/xml/291980>\
**Category:** Uncategorized\
**Created:** [July 8, 2009, 1:55pm UTC](https://forum.kirupa.com/t/xml/291980 "2009-07-08T13:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_ylin](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@K\_ylin](https://forum.kirupa.com/u/K_ylin)\
**Post date:** [July 8, 2009, 1:55pm UTC](https://forum.kirupa.com/t/xml/291980/1 "2009-07-08T13:55:31Z")

</div>

hi

I followed the tut on kirupa, nice, I am struggling to get further though. I want to add my image to the stage but no luck? It traces that the xml object has been added but I cant seem to get it to display on the stage…HELP!!

var loader:URLLoader = new URLLoader();  
loader.addEventListener(Event.COMPLETE, LoadXML);

var xml:XML = new XML();

function LoadXML (e:Event) : void {  
xml = new XML(e.target.data);  
var il:XMLList = xml.image;  
for (var i:int = 0; i \< il.length(); ++i) {  
trace(il);  
}  
}

loader.load(new URLRequest(“gallery.xml”));
