惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - 老冯

项目管理: 软件质量的可靠保证 最新blog程序收集 真假羊绒鉴别方法 Windos 下修改修改远程桌面端口方法 FTP命令详解 2006上海国资委首页设计稿 ADO.NET数据集又是我需要学习的一个好东东 asp.net技巧收录 javascript特效收藏 发现一款绿色toolbar工具 目录同步工具-DirWatcher WDCM推荐的触发器 轻松一下,今天的事情放一放 今日手记-星期六的生活 各大主流BBS论坛程序简介 DataGrid排训功能讲解 开源:MIS金质打印通原理及实现 Step by step (1) 汽车制造企业ERP需求分析与解决方案 搜索SEO代码 - 老冯 - 博客园
RSS 2.0规范
老冯 · 2006-11-15 · via 博客园 - 老冯

 RSS是 Really Simple Syndication的缩写(对rss2.0而言,是这三个词的缩写,对rss1.0而言则是RDF Site Summary的缩写,1.0与2.0走的是两个体系)
  RSS 基于XML,所有的 RSS 必须遵循w3c网站上公布的XML 1.0 规范。
  在一个RSS文档中,根元素是<rss>,带有一个必备属性version,用以指明该文档遵循的rss规范,如果rss文档遵循本规范,则version值必须是2.0。
  <rss>元素只有一个子元素,包含关于频道的一些信息。频道(channel)是整个blog,项(item)指一篇文章或日志(也有称这为post)。

RSS2.0元素channel的子元素列表


元素(Element) 描述(Description) 值域 重要性 举例(Example)
title 频道名称   必备 GoUpstate.com News Headlines
link 频道的URL   必备 http://www.goupstate.com/
Description 频道的描述   必备 The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.
         
language 频道文章所用语言, 可用netscape或w3c推荐的列表 可选 en-us
copyright 频道内容的版权说明   可选 Copyright 2002, Spartanburg Herald-Journal
managingEditor 责任编辑的email   可选 geo@herald.com (George Matesky)
webMaster 负责频道技术事务的网站管理员email   可选 betty@herald.com (Betty Guernsey)
pubDate 频道内容发布日期,格式遵循RFC822格式(年份可为2们或4位)   可选 Sat, 07 Sep 2002 00:00:01 GMT
lastBuildDate 频道内容最后的修改日期   可选 Sat, 07 Sep 2002 09:42:31 GMT
category 指定频道所属的一个或几个类别   可选 <category>Newspapers</category>
generator 生成该频道的程序名   可选 MightyInHouse Content System v2.3
docs 指向该RSS文件所用格式说明的URL   可选 http://blogs.law.harvard.edu/tech/rss
cloud Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds. More info here.   可选 <cloud domain="rpc.sys.com" port="80" path="/RPC2" registerProcedure="pingMe" protocol="soap"/>
ttl 有效期,用以指明该频道可被缓存的最长时间 分钟为单位 可选 <ttl>60</ttl>
image 指定一个 GIF或JPEG或PNG图片,用以与频道一起显示   可选  
rating 这个频道的分级(主要指成人、限制、儿童等)   可选  
textInput 指定一个text输入框供用户输入,具体信息及功能未定。   可选  
skipHours 提示新闻聚合器,那些小时时段它可以跳过。   可选  
skipDays 提示新闻聚合器,那些天它可以跳过。   可选  

RSS2.0元素channel的子元素image的子元素列表


元素(Element) 描述(Description) 值域 重要性 举例(Example)
url 图片的url   必备  
title 图片的标题,用于http的alt属性   必备  
link 网站的url(实际中常以频道的url代替)   必备  
width 图片的宽度(象素为单位) 最大144,默认88 可选  
height 图片的高度(象素为单位) 最大400,默认31 可选  
description 用于link的title属性   可选  

RSS2.0元素channel的子元素cloud的子元素列表


元素(Element) 描述(Description) 值域 重要性 举例(Example)
domain Cloud程序所在机器的域名或IP地址     radio.xmlstoragesystem.com
port 访问clound程序所通过的端口     80
path 程序所在路径(不一定是真实路径)     /RPC2
registerProcedure 注册的可提供的服务或过程     xmlStorageSystem.rssPleaseNotify
protocol 协议 xml-rpc, soap , http-post 之一   xml-rpc

RSS2.0元素channel的子元素textInput的子元素列表


元素(Element) 描述(Description) 值域 重要性 举例(Example)
title Submit按钮的标签   必备  
description 解释text输入区   必备  
name Text area对象的名字   必备  
link 处理提交的请求的cgi程序   必备  

关于item的内容,请看基于XML-RPC的BloggerAPI学习.
说明:
  rss2.0要求<link>和<url>的值的非常部分开头,须是在IANA注册过的,如http://或https://或ftp://等。
  一个rss文件中,可以包括没有这儿定义的元素,只要它是在某个命名空间被定义过。
  一个常见问题是与 的区别,两者在有些情况下是相同的,但前者可指几某个长文中的某个位置(即所谓的页内锚点吧)。