请问如何对一个网页上的rss标记进行处理

yangyuhang 2004-09-15 08:13:32
如题
即如何通过网页提取多个rss标记的相关内容
菜鸟水平
希望给出示例程序说明
谢谢:)
...全文
137 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
whnnet 2004-09-21
  • 打赏
  • 举报
回复
应该用什么编译器执行?
ie5+即可
lonlykiller 2004-09-19
  • 打赏
  • 举报
回复
www.joysou.com/asp/rss.asp
yangyuhang 2004-09-19
  • 打赏
  • 举报
回复
谢谢saucer(思归/MVP)和net_lover(孟子E章)
我想问当一个网页上有多个rss标记时,如果只输入该网页的url地址可以提取这几个标记中得信息吗?还有,弱弱的问,应该用什么编译器执行,谢谢!!
得到解答后揭帖。
孟子E章 2004-09-16
  • 打赏
  • 举报
回复
<script>
x = new ActiveXObject("Microsoft.XMLHTTP")
x.open("GET","http://dotnet.aspx.cc/Rss.aspx",false)
x.send()
if(x.status==200)
{
d = x.responseXML
alert(d.xml)
alert(d.selectSingleNode("//channel/title").text)
nodes = d.selectNodes("//item")
for(i=0;i<nodes.length;i++)
alert(nodes[i].selectSingleNode("title").text + "\n\n\n" + nodes[i].selectSingleNode("link").text)
}
else
alert(x.statustext)
</script>


还可以异步处理
http://blog.csdn.net/net_lover/archive/2004/07/06/35220.aspx
孟子E章 2004-09-16
  • 打赏
  • 举报
回复
http://dotnet.aspx.cc/RssBrowse.aspx
saucer 2004-09-16
  • 打赏
  • 举报
回复
it should be simple, rss is in xml format, you could use classes in System.Xml to read it, or see

RSS Reader
http://www.codeproject.com/csharp/RssReader.asp

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧