# Loading XML(names) from array?

**URL:** <https://forum.kirupa.com/t/loading-xml-names-from-array/216015>\
**Category:** flash\
**Created:** [February 12, 2007, 11:51pm UTC](https://forum.kirupa.com/t/loading-xml-names-from-array/216015 "2007-02-12T23:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indigo\_child](https://avatars.discourse-cdn.com/v4/letter/i/e95f7d/32.png) [@indigo\_child](https://forum.kirupa.com/u/indigo_child)\
**Post date:** [February 12, 2007, 11:51pm UTC](https://forum.kirupa.com/t/loading-xml-names-from-array/216015/1 "2007-02-12T23:51:44Z")

</div>

ok so i have this array from which i wanna fetch names of the XML files i want to load in their XML object, so i write like this but it doesn’t work

var meniXML = new Array(“onama”, “ponuda”, “ref\_lista”, “show\_room”, “kontakt”);

for (i=0; i\<meniXML.length; i++) {

meniXML\* = new XML();  
meniXML\*.ignoreWhite = true;  
meniXML\*.load(meniXML\*+".xml");

}

i did try some other variations, but hope someone tells me correct one 🙂
