# Store XML data in Array

**URL:** https://forum.kirupa.com/t/store-xml-data-in-array/266819
**Category:** Uncategorized
**Created:** [July 24, 2008, 5:05pm UTC](https://forum.kirupa.com/t/store-xml-data-in-array/266819 "2008-07-24T17:05:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jameslee](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jameslee](https://forum.kirupa.com/u/jameslee)
#### Post date: [July 24, 2008, 5:05pm UTC](https://forum.kirupa.com/t/store-xml-data-in-array/266819/1 "2008-07-24T17:05:53Z")

</div>

I wanted to know if it was possible to store XML data in an array, and then call  
this data later on in a MC.

so I have somehing like this.

```auto

xmlarray = [];

xmlFile = "users.xml";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.load(xmlFile);
xmlData.onLoad = function(success) { 
    if (success) {
        path = xmlData.firstChild;
        nodes = path.childNodes;
        for(i=0; i<nodes.length; i++) {
            xmlarray* = path.childNodes*.attributes.area;
        }
    }

}

```

MC code.

```auto

trace(_root.xmlarray);

```

I wanted to know if this was possible to do
