2010-05-04 63 views
0

DOM文檔停止工作,我有一些代碼,看起來像這樣:MSXML當我移動到臨時服務器

Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP") 
xmlHttp.Open "Get", myRSSfile, false 
xmlHttp.Send() 
myXML = xmlHttp.ResponseText 

Set xmlResponse = Server.CreateObject("MSXML2.DomDocument") 
xmlResponse.async = false 
xmlResponse.LoadXml(myXML) 
Set xmlHttp = Nothing 

Set objLst = xmlResponse.getElementsByTagName("item") 
Set xmlResponse = Nothing 

NoOfHeadlines = objLst.length - 1 
Response.Write NoOfHeadlines 

這個工作找到我的開發服務器上。當我把它移動到一個登臺服務器(我無法控制,而且什麼也沒有)時,NoOfHeadlines返回0.對我而言,DomDocument並不像它應該的那樣工作。 這是版本問題?如何找出登臺服務器上的DomDocument版本? 還有另一種可能嗎?

回答

0

的問題

xmlHttp.Open "Get", myRSSfile, false 

應該

xmlHttp.Open "GET", myRSSfile, false 
相關問題