# Fl mx - loading xml attribute

**URL:** <https://forum.kirupa.com/t/fl-mx-loading-xml-attribute/282258>\
**Category:** flash\
**Created:** [February 19, 2009, 1:48pm UTC](https://forum.kirupa.com/t/fl-mx-loading-xml-attribute/282258 "2009-02-19T13:48:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prontoflash](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@prontoflash](https://forum.kirupa.com/u/prontoflash)\
**Post date:** [February 19, 2009, 1:48pm UTC](https://forum.kirupa.com/t/fl-mx-loading-xml-attribute/282258/1 "2009-02-19T13:48:47Z")

</div>

Hi, I want to modify this code (xml gallery) in relation with my xml, but I don’t know how.  
Someone can help me?

```auto
 <pictures> <image location="acqua01.jpg" desc="" /> </pictures>

```

function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
image = [];  
description = [];  
total = xmlNode.childNodes.length;  
for (i=0; i\<total; i++) {  
image\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;

description\* = xmlNode.childNodes\*.childNodes[1].firstChild.nodeValue;  
}  
firstImage();  
} else {  
aaa = “Non caricato!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“public/gallery/homepage/pics.xml?null=”+random(Infinity));
