var xmlDoc = xmlHttp.responseXML; 
data=type=="xml"||data?r.responseXML:r.responseText;

解决方案 »

  1.   

    我昨天也碰到这个问题,最后发现,在IE中,如果直接打开本地文件的话responseXML是空的,在firefox下没问题
    把网页放到web服务器上,就没问题了
      

  2.   

    我在firefox下依然是0 郁闷
      

  3.   

    firstChild.nodeValue;
    =========================
    nodeValue:
    ie下用text,ff下用textContent
      

  4.   

    谢谢楼上的回答 
    我汗啊 错误居然是XML的头
    <?xml version="1.0" encoding="utf-8">  
    末尾少个问号 我晕 还是用MyEclipse测试时发现的 
    大家要细心啊 呵呵 
    我是在IE下 ff下看看