可以使用MSXML2的异步load方法呀XMLDoc.async = true:
dim XMLDoc
set XMLDoc = Server.CreateObject("Msxml2.DOMDocument")
XMLDoc.async = false
XMLDoc.validateOnParse = false
XMLDoc.load("sample.xml")
改XMLDoc.async = false为XMLDoc.async = true对后边的读数据有影响的,你试一下就知道了。

解决方案 »

  1.   

    I think download behavior is 异步的for MSXML2.DOMDOCUMENT object, if you set async = true, it will be 异步. For example, if you run the following in a local html file, after you click on "get slash" button, you can click on "test" button and to see that the status is changing<script javascript">
    function document.onclick()
    {
       window.status = new Date().toString();
    }var xmldoc = new ActiveXObject("MSXML2.DOMDOCUMENT.4.0");function checkStatus()
    {
      if(xmldoc.readyState == 4)
        alert(xmldoc.xml);
    }function getSlash()
    {
      xmldoc.async = true;
      xmldoc.onreadystatechange = checkStatus;
      xmldoc.load("http://www.slashdot.org/slashdot.xml");
      event.cancelBubble = true;
      event.returnValue = false;
    }
    </script>
    <input type="button" value="get slash" onclick="getSlash()">
    <input type="button" value="test">