Load xml data in a array

hi guys ,

i want to load the data in a xml file into a array
this is the code i have been using but its not working pls help…


stop();
var my_array = new Array();
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
 for (i=0; i<my_xml.firstChild.childNodes.length; i++) {
  for (j=0; j<my_xml.firstChild.childNodes*.childNodes.length; j++) {
   for (k=0; k<my_xml.firstChild.childNodes*.childNodes[j].childNodes.length; k++) {
    my_array.push(my_xml.firstChild.childNodes*.childNodes[j].childNodes[k]._value);
   }
  }
 }  
};
my_xml.load("my_xml.xml");

xml-file data :
<?xml version=“1.0” encoding=“iso-8859-1”?>
<content>
<module>
<chapter>
<page id = “01”>ewrtewr</page>
<page id = “02”>dvdf</page>
<page id = “03”>sdg</page>
<page id = “04”>sadg</page>
</chapter>
<chapter>
<page id = “05”>adsf</page>
<page id = “06”>retgfd</page>
<page id = “07”>fbfb</page>
<page id = “08”>bxfc</page>
</chapter>
<chapter>
<page id = “09”>ddsd</page>
<page id = “10”>dsfsdf</page>
<page id = “11”>dfsd</page>
<page id = “12”>dfsf</page>
</chapter>
</module>
<module>
<chapter>
<page id = “13”>dsfsdf</page>
<page id = “14”>dsdf</page>
<page id = “15”>sdsdf</page>
<page id = “16”>sdsdf</page>
</chapter>
<chapter>
<page id = “17”>safa</page>
<page id = “18”>sdee</page>
<page id = “19”>sdsd</page>
<page id = “20”>sbdfbfd</page>
</chapter>
<chapter>
<page id = “21”>sfdgbbg</page>
<page id = “22”>dsgs</page>
<page id = “23”>dsf</page>
<page id = “24”>dss</page>
</chapter>
</module>
</content>