Hi, i'm trying to run this code, but i'm getting some errors that i can't understand completely. This is the code, and the error is explained below!

Code:
function verify_oload(){
        if (xmlHttp.readyState == 0 || xmlHttp.readyState == 4) {
                    var queryString = "id_user=" + id2 + "&url=" + 6;
                    xmlHttp.open("GET", "code/php/core.php?" + queryString, true);
                    xmlHttp.onreadystatechange = handleServerRespons_vo;
                    xmlHttp.send();
           }else{
           setTimeout('verify_oload(', 1000)
       }  
}
Then some php code runs some functions, etc and sends some data back to this function, that should return the data to the javascript.

PHP Code:
header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';

[COLOR=Red]++some code[/COLOR]

function verify($name, $number, $country_ID, $company, $country){
            
echo '<rss version="0.91">';
echo '<channel>';
echo '<response2>';
echo '<name>';
    echo $name;
echo '</name>';
echo '<number>';
    echo $number;
echo '</number>';
echo '<country_id>';
    echo $country_ID;
echo '</country_id>';
echo '<company>';
    echo $company;
echo '</company>';
echo '<country>';
    echo $country;
echo '</country>';
echo '</response2>';
echo '</channel>';
echo '</rss>';
    
}
Then this function receives the data and alert's it out, but no alert shows up and i get an error: TypeError: Cannot call method 'getElementsByTagName' of null [http://localhost/easy.login/code/js/js.js:246], but how can i fix this?

Code:
function handleServerRespons_vo(){
  
    if (xmlHttp.readyState == 4){
        
        if (xmlHttp.status == 200){
            var xmldata = xmlHttp.responseXML;
                var rssentries = xmldata.getElementsByTagName("response2");
                var output= '<h2 style="margin-bottom: 5px; font-weight: bold;"><i class="icon-user"></i>' + rssentries[i].getElementsByTagName('name ')[0].firstChild.nodeValue + '</h2>\n\
                    <h3 style="margin-bottom: 0px; font-weight: normal;">' + rssentries[i].getElementsByTagName('company')[0].firstChild.nodeValue + '</h3>\n\
                    <h5 style="margin-bottom: 50px;">\n\
                        <i class="icon-globe"></i>' + rssentries[i].getElementsByTagName('country')[0].firstChild.nodeValue + '\n\
                        <i class="icon-phone" style="margin-left: 20px"></i> +' + rssentries[i].getElementsByTagName('country_id')[0].firstChild.nodeValue + '<span> </span>' + rssentries[i].getElementsByTagName('number')[0].firstChild.nodeValue + '\n\
                    </h5>';
            alert(output);
                //document.getElementById("result").innerHTML=output
               }
    }
}