当前位置: 代码迷 >> ASP.NET >> xml 读的时候有异常,大家帮小弟我看看啊
  详细解决方案

xml 读的时候有异常,大家帮小弟我看看啊

热度:1074   发布时间:2013-02-25 00:00:00.0
xml 读的时候有错误,大家帮我看看啊!
readxml   页代码
<!DOCTYPE   HTML   PUBLIc   "1//W3C//DTD   XHTML   1.0   Strict//EN "
"http://www.w3.org/TR/xhtml1/DTD/xhtmll1-strict.dtd ">
<html   xmlns= "http;//www.w3.org/1999/xhtml ">
<head>
<title> xmlHttprequest </title>
<meta   name= "GENERATOR "   content= "Microsoft   Visual   Studio   .NET   7.1 ">
<meta   name= "ProgId "   content= "VisualStudio.HTML ">
<meta   name= "Originator "   content= "Microsoft   Visual   Studio   .NET   7.1 ">
<script   language= "javascript ">
        var   xmlHttp;
        var   requestType= " ";
     
        function   createXMLHttpRequest()
        {      
                 
             
                if(window.ActiveXObject)
                {
                     
                        xmlHttp=new   ActiveXObject( "Microsoft.XMLHTTP ");
                }
                else(window.XMLHttpRequest)
                {
                        xmlHttp=new   XMLHttpRequest();
                }
        }
       
        function   startRequest(requestedList)
        {      
              //   alert( "运行到这里! ");
                requestType=requestedList;
                createXMLHttpRequest();
                alert( "运行到这里! ");
                xmlHttp.onreadystatechange=handleStateChange;
                xmlHttp.open( "GET ", "city.xml ",true);
                xmlHttp.send(null);
       
        }
       
        function   handleStateChange()
        {      
                //alert( "运行到这里! ");
                if(xmlHttp.readyState==4)
                {
                        if(xmlHttp.status==200)
                        {
                                if(requestType== "north ")
  相关解决方案