Se ho capito la domanda, dato questo file xml:
codice:
<server_status>
<server name="pippo">
<proprieta_X>
<proprieta_xy>123</proprieta_xy>
<proprieta_yz>456</proprieta_yz>
</proprieta_X>
<proprieta_X>
<proprieta_xy>789</proprieta_xy>
<proprieta_yz>987</proprieta_yz>
</proprieta_X>
</server>
</server_status>
Crei l'array con:
codice:
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.path = this;
data_xml.onLoad = function(ok)
{
if(ok){
this.path.mio_array = [];
var nodes = this.firstChild.firstChild.childNodes;
for(var i = 0; i < nodes.length; i++){
var temp = [];
for(var j = 0; j < nodes[i].childNodes.length; j++){
temp.push(nodes[i].childNodes[j].firstChild.nodeValue);
}
this.path.mio_array.push(temp);
}
} else {
trace("ERRORE");
}
};
data_xml.load("dati.xml");