欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP運(yùn)行出錯(cuò):缺少對(duì)象: 'xmlDoc.documentElement'錯(cuò)誤解決方法

 更新時(shí)間:2012年03月01日 20:02:45   作者:  
ASP運(yùn)行出錯(cuò):缺少對(duì)象: 'xmlDoc.documentElement'錯(cuò)誤解決方法,需要的朋友可以參考下
原本運(yùn)行正常的ASP頁面,今天突然提示:
復(fù)制代碼 代碼如下:

Microsoft VBScript 運(yùn)行時(shí)錯(cuò)誤 錯(cuò)誤 '800a01a8'
缺少對(duì)象: 'xmlDoc.documentElement'
/work/Menu.asp,行 80

找到相關(guān)代碼如下:
復(fù)制代碼 代碼如下:

Set xmlDoc=Server.CreateObject("MicroSoft.XmlDom")
xmlDoc.async = false
xmlDoc.load(Server.MapPath("Menu.xml"))
Set root = xmlDoc.documentElement.selectSingleNode("http://index")

會(huì)不會(huì)是沒有l(wèi)oad成功呢?輸出內(nèi)容看下:
復(fù)制代碼 代碼如下:

Response.Write(xmlDoc.xml)

空的,能肯定是load出問題了。查看下Menu.xml,發(fā)現(xiàn)xml文件內(nèi)容不知什么時(shí)候被改了:
復(fù)制代碼 代碼如下:

<?xml version="1.0" encoding="gb2312"?>
<index>
<catalog title="分類一">
<item id="class1_1"><![CDATA[<a href="class1_1.asp" target="main">子類11</a>]]></item>
<item id="class1_2"><![CDATA[<a href="class1_2.asp" target="main">子類12</a>]]></item>
</catalog>
</index>
><![CDATA[<a href="class2_3" target="main">子類23</a>]]></item>
</catalog>
</index>

修改下xml文件,再瀏覽頁面就正常了。

相關(guān)文章

最新評(píng)論