All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET,AJAX,Beta2,调用本地WebService的一些改变_.net资料_编程技术
在Asp.net中为图像加入版权信息_[Asp.Net教程]
Silverlight,2(beta1)数据操作(2)——使用ASP.NET,Web,Service_[Asp.Net教程]
利用Visual,C#实现任务栏通知窗口_.net资料_编程技术
如何授予对存储过程的权限_[SQL Server教程]
PHP实现简单线性回归之数学库的重要性_php资料_编程技术
Sql,server动态和静态内存分配_[SQL,Server教程]
总结:关于ASP.NET,2.0一些简单而有用的技巧_.net资料_编程技术
ASP.NET中如何从视频文件中抓取一桢并生成图像文件_.net资料_编程技术
2个页面间不通过Session与url的传值方式_[Asp.Net教程]
Reading number is top 10 pictures
BingBingFan apple dew point photo gallery2
Absolutely shocked. National geographic 50 animal photographys1
关于提肛的健身效果
Soong ching ling's former residence1
在加油站厕所门口看到的告示
清醇靓丽的美眉
这玉米,买还是不卖?
China railway shunting skills competition
Fierce chengdu woman, street rape man
教你做读书笔记
Download software ranking
Desire a peach blossom
Tram sex maniac 2 (H) rar bag3
Love the forty days
塘西风月痕
Ashlynn Video4
电车之狼R
The Bermuda triangle3
Boxer's Top ten classic battle7
Boxer Classic video1
linux安装大全
归海一刀 published in(发表于) 2014/3/20 5:10:52 Edit(编辑)
Asp实现获取xml中的内容_[XML教程]

Asp实现获取xml中的内容_[XML教程]

Asp实现获取xml中的内容_[XML教程]
note.xml中的内容






新浪
http://www.sina.com.cn


google
http://www.google.cn


百度
http://www.baidu.com



index.asp中的内容




<%
h=GetLocationURL()'获取当前地址
h1=Split(h,"/")
h=Replace(h,h1(UBound(h1)),"note.xml")


Set http=Server.CreateObject("Microsoft.XMLHTTP")
http.Open "GET",h,False
http.send


Set xml=Server.CreateObject("Microsoft.XMLDOM")
xml.Async=False
xml.ValidateOnParse=False
xml.Load(http.ResponseXML)
If xml.ReadyState>2 Then
Response.Write("文档已经准备就绪。状态:"& xml.ReadyState &"
")
Set item=xml.getElementsByTagName("item")
For i=0 To (item.Length-1)
Set title=item.Item(i).getElementsByTagName("title")
Set link=item.Item(i).getElementsByTagName("link")
Response.Write(""& title.Item(0).Text &"
")
Next
Else
Response.Write("文档还未准备就绪。状态:"& xml.ReadyState &"
")
End If
Set http=Nothing
Set xml=Nothing
%>
<%
Function GetLocationURL()
Dim Url
Dim ServerPort,ServerName,ScriptName,QueryString
ServerName = Request.ServerVariables("SERVER_NAME")
ServerPort = Request.ServerVariables("SERVER_PORT")
ScriptName = Request.ServerVariables("SCRIPT_NAME")
QueryString = Request.ServerVariables("QUERY_STRING")
Url="http://"&ServerName
If ServerPort <> "80" Then Url = Url & ":" & ServerPort
Url=Url&ScriptName
If QueryString <>"" Then Url=Url&"?"& QueryString
GetLocationURL=Url
End Function
%>





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.