欧美特黄不卡,涩涩视频在线,成人国产精品一区二区网站,亚洲一区二区三区欧美

當前位置:雨林木風下載站 > 技術開發教程 > 詳細頁面

運用ASP從遠程服務器上接收XML數據

運用ASP從遠程服務器上接收XML數據

更新時間:2022-05-13 文章作者:未知 信息來源:網絡 閱讀次數:

<%
dim objXML
dim objRootElement
dim strValue
dim strInetURL
dim strXML
dim item
            
strInetURL ="http://pf.inetsolution.com/inetactive2001/inetactive2001news.xml"
Dim HttpReq
  
set HttpReq = server.CreateObject("MSXML2.XMLHTTP")
  
HttpReq.open "GET", "http://pf.inetsolution.com/inetactive2001/inetactive2001news.xml", False
HttpReq.send
strXML = HttpReq.responseText       
Set objXML = Server.CreateObject("Msxml2.DOMDocument")
objXML.validateonparse = true
objXML.async=false
objXML.loadXML(strXML)
if objXML.ParseError.errorCode <> 0 then
    Response.Write("Error: " & objXML.parseError.reason & "<br>")
    Response.Write("Code: 0x" & hex(objXML.parseError.errorCode) & "<br>")
    Response.Write("At Line: " & objXML.parseError.line & "<br>")
    Response.Write("At pos: " & objXML.parseError.linePos & "<br>")
                
else
    set objRootElement = objXML.documentElement
    if not isObject(objRootElement) then
        Response.Write("no file loaded")
    else
        Response.Write(objRootElement.childnodes(0).text)
    end if
end if
%>

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

主站蜘蛛池模板: 凤凰县| 西城区| 武功县| 岳阳县| 鄂托克前旗| 宜君县| 西畴县| 浦县| 邵东县| 长子县| 吉安市| 合江县| 英吉沙县| 广饶县| 江北区| 巴彦淖尔市| 盱眙县| 永福县| 牙克石市| 奈曼旗| 寿宁县| 湾仔区| 江川县| 大方县| 上杭县| 松原市| 遂溪县| 谢通门县| 出国| 铜川市| 三门峡市| 赞皇县| 军事| 桃园市| 弥勒县| 安塞县| 五峰| 皋兰县| 富川| 黑河市| 铜陵市|