server side script help
I'm trying to get some xml on the serverside to parse. I can load the xml just fine so there is no problem there but i can't get the streamArray to populate nor can i get any of the if statments after loaded to execute. Here is the code feel free to use the xml document on my server.
var StreamArray = new Array();
var location_xml = new XML();
location_xml.onLoad = function( success ) {
if(location_xml.loaded == true) {
trace(location_xml);
if (location_xml.firstChild.hasChildNodes()) {
for (var aNode = location_xml.firstChild.firstChild; aNode != null; aNode=aNode.nextSibling) {
if (aNode.nodeType == 1) {
StreamArray[aNode.attributes.id] = aNode.attributes.name ;
trace(StreamArray);
}
}
}
}
}
location_xml.load("http://www.privatechatnow.com/fmsuser/playlist.xml");
