Why is my XML returned from readystatechange empty [duplicate]




This question already has an answer here:





xmlresponse.onreadystatechange=function(){
if (xmlresponse.readyState==4 && xmlresponse.status==200){
document.xml_fragment = xmlresponse.responseXML.documentElement.childNodes;
};
};
var streamlist = document.xml_fragment.getElementsByTagName("stream");


Why is document.xml_fragment in the last line not defined?


No comments:

Post a Comment