function loadXML(path,myXML) { var xmlData = myXML.childNodes; loadXML2(path,xmlData); } function loadXML2 (path,xmlData) { var c = xmlData.length; for (i=0;i<c;i++) { if (xmlData[i].nodeValue) trace(xmlData[i].nodeValue); else loadXML2(path,xmlData[i]); } }