RSS(简易信息聚合,也叫聚合内容)是一种描述和同步网站内容的格式。RSS可以是以下三个解释的其中一个: Really Simple Syndication;RDF (Resource Description Framework) Site Summary; Rich Site Summary。但其实这三个解释都是指同一种Syndication的技术。RSS目前广泛用于网上新闻频道,blog和wiki。使用RSS订阅能更快地获取信息,网站提供RSS输出,有利于让用户获取网站内容的最新更新。网络用户可以在客户端借助于支持RSS的聚合工具软件,在不打开网站内容页面的情况下阅读支持RSS输出的网站内容。
从技术上来说一个RSS文件就是一段规范的XML数据,该文件一般以rss,xml或者rdf作为后缀,下面是一段 rss 文件的内容示例:
01 |
<? xml version = "1.0" encoding = "utf-8" ?> |
04 |
< title >php程序员教程网</ title > |
05 |
< link >http://www.phpernote.com/</ link > |
06 |
< description >本站是一个php程序员的工作生活笔记!</ description > |
08 |
< title >RSS Tutorial</ title > |
10 |
<td class="content" style="margin:0px !important;padding:0px 0px 0px 0.5em !important;outline:0px !important;float:none !important;vertical-align:top !important;position:static !important;left:auto !important;top:auto !important;right:auto !important;bottom:auto !important;height:auto !important;width:auto !important;line-height:1.1em !important;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important;font-size:1em !important;min-height:auto !important;border-left-widt