asp如何读取并解析远程xml文件

来源:百度知道 编辑:UC知道 时间:2024/05/06 14:09:23

用XMLHTTP获取,代码如下:
<%
dim objXML
dim objRootElement
dim strValue
dim strInetURL
dim strXML
dim item

strInetURL ="http://www.amwaynet.com.cn/content/data/nthmtg.xml"
Dim HttpReq

set HttpReq = server.CreateObject("Microsoft.XMLHTTP")

HttpReq.open "GET","http://www.amwaynet.com.cn/content/data/nthmtg.xml",False
HttpReq.send
strXML = HttpReq.responseText
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.validateonparse = true
objXML.async=false