xmlhttprequest variables undefined ONLY in IE8
<p>I have the following script working in all major browsers except for Internet Explorer.  All of my variables are coming back undefined.</p>

<pre><code>{
if (window.XMLHttpRequest)
 {
 xhttp=new XMLHttpRequest();
 }
else
 {
 xhttp=new ActiveXObject("Microsoft.XMLHTTP");
 }
xhttp.open("GET",dname,false);
xhttp.send();
return xhttp.responseXML;
} 
var xmlDoc = loadXMLDoc("nhl_standings_xml.xml");
var x = xmlDoc.getElementsByTagName("nhlall");
</code></pre>

<p>Some other info..</p>

<p>xhttp.readystate = 4
xhttp.status=200</p>

<p>I am using .textContent to get the variables, however, I have read that sometimes IE has problems with that. Can someone maybe give me some ideas about alternatives to .textContent? </p>

<p>here is what the rest of code looks like:</p>

<pre><code>     document.getElementById('PensWins').innerHTML = var1;
    document.getElementById('PensLoses').innerHTML = var3;
    document.getElementById('PensOTWins').innerHTML = var8;

             var var1 = x[i+3].textContent;
        var var3 = x[i+4].textContent;
        var var8 = x[i+5].textContent;
</code></pre>

<p>'i' is coming from a loop</p>

<p>im asking is there any part of the above IE8 doesn't like?  (obviously there is)</p>
