Quick question: XML and arrays

Hey all,

I’m loading a series of XML docs. At the end, it needs to load X number of XML docs. Thus I wrote this code:


loadSubChannels = function (which) {
	for (var j=0; j<(_level0.subChannels_arr[which]); j++) {

		subchannel_xml[j] = new XML();
		subchannel_xml[j].ignoreWhite = true;
		subchannel_xml[j].onLoad = function(success) {
		
		// parsing code here

	subchannel_xml[j].load(_level0.rootFolder_arr[which] + "/" + _root.subXML[which][j]);
	 }
}

I’ve hit a wall with this code, possibly for a number of reasons, but my simple question is, can you put XML docs into an array? I can’t see why not personally.

Thanks huge bunches.

Aaron