最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

利用ASP從遠(yuǎn)程服務(wù)器上接收XML數(shù)據(jù)的方法

 更新時(shí)間:2007年01月03日 00:00:00   作者:  
復(fù)制代碼 代碼如下:
<% 
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 
%>
 

相關(guān)文章

最新評(píng)論

乌兰县| 临桂县| 图木舒克市| 青浦区| 漳平市| 延安市| 冕宁县| 巴楚县| 山丹县| 安徽省| 阳江市| 盐山县| 武夷山市| 大石桥市| 西华县| 建德市| 长汀县| 江阴市| 宿松县| 湘潭市| 宜宾县| 蓬安县| 堆龙德庆县| 得荣县| 乐平市| 高碑店市| 东丽区| 普定县| 桃江县| 南澳县| 醴陵市| 茌平县| 集安市| 江津市| 无为县| 临城县| 铁岭县| 紫阳县| 五河县| 博罗县| 会东县|