Rss标准格式
来源:互联网 发布:怎样做好一个软件 编辑:程序博客网 时间:2024/06/16 13:31
1.RSS:简单来讲,实际就是一个大家定义好的xml格式结构。
2.Rss阅读器:把xml里的数据解析后,以html页面展示。
3.rss定义的xml格式。
以下是RSS 2.0的代码样例<!-- XML版本和字符集 -->
<?xml version="1.0"?>
<!-- RSS版本 -->
<rss version="2.0">
<!-- 以下为频道信息及新闻列表 -->
<channel>
<!-- 频道总体信息:开始 -->
<!-- 频道标题 -->
<title>Lift Off News</title>
<!-- 频道链接的总地址 -->
<link>http://liftoff.msfc.nasa.gov/</link>
<!-- 频道描述文字 -->
<description>Liftoff to Space Exploration.</description>
<!-- 频道使用的语言(zh-cn表示简体中文) -->
<language>en-us</language>
<!-- 频道发布的时间 -->
<pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
<!-- 频道最后更新的时间-->
<lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<!-- 频道生成器 -->
<generator>Weblog Editor 2.0</generator>
<managingEditor>editor@example.com</managingEditor>
<webMaster>webmaster@example.com</webMaster>
<ttl>5</ttl>
<!-- 频道总体信息:结束 -->
<!-- 每条RSS新闻信息都包含在item节点中, --><item>
<!-- 新闻标题 -->
<title>Star City</title>
<!-- 新闻链接地址 -->
<link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
<!-- 新闻内容简要描述 -->
<description>How do Americans get ready to work with Russians aboard the
International Space Station? They take a crash course in culture, language
and protocol at Russia's Star City.</description>
<!-- 新闻发布时间 -->
<pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
<!-- 新闻目录 -->
<category>IT</category>
<!-- 新闻作者 -->
<author>bill</author>
<guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
</item>
<item><title>Space Exploration</title>
<link>http://liftoff.msfc.nasa.gov/</link>
<description>Sky watchers in Europe, Asia, and parts of Alaska and Canada
will experience a partial eclipse of the Sun on Saturday, May 31st.</description>
Fri, 30 May 2003 11:06:42 GMT</pubDate>
<guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid>
</item>
<item><title>The Engine That Does More</title>
<link>http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp</link>
<description>Before man travels to Mars, NASA hopes to design new engines
that will let us fly through the Solar System more quickly. The proposed
VASIMR engine would do that.</description>
Tue, 27 May 2003 08:37:32 GMT</pubDate>
<guid>http://www.zhanghangfeng.cn/rss.xml</guid>
</item>
<item><title>Astronauts' Dirty Laundry</title>
<link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link>
<description>Compared to earlier spacecraft, the International Space
Station has many luxuries, but laundry facilities are not one of them.
Instead, astronauts have other options.</description>
Tue, 20 May 2003 08:56:02 GMT</pubDate>
<guid>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</guid>
</item>
</channel></rss>
- RSS标准格式说明
- Rss标准格式
- RSS 标准
- rss 格式
- RSS规范 RSS标准 RSS约定
- RSS 2.0 标准
- Rss 2.0标准
- RSS 2.0 标准
- RSS 0.91 标准
- RSS 1.0 标准
- RSS 2.0 标准
- Rss日期格式规范
- RSS格式规范
- RSS格式规范
- 制作RSS格式
- 【转】RSS格式规范
- RSS简单格式
- RSS订阅的xml格式
- 题目链接
- 根据status信息对MySQL服务器进行优化
- 设计模式DP(3)抽象工厂
- 【小蒙淘金】3.5午夜金评-晚间快速波动零点行情如何把握?
- LIB和DLL的区别与使用
- Rss标准格式
- RSS文章订阅及生成RSS格式的xml
- effctive c++ 学习
- VMWare安装64位CentOS6.3出现Unable to boot - please use a kernel appropriate for your CPU.解决方法
- 揭露卖劣质U盘黑心商家的利器
- 如何安装memcached
- 简单ftp实现(get和put)
- ViewConfiguration的简单介绍
- VMware Workstation虚拟机与主机共享文件