<?xml version=”1.0″ ?>
<!– RSS 版本 –>
<rss version=”2.0″>
<channel>
<!–必须的频道节点:title,定义频道名称–>
<title>暨南大学图书馆新闻订阅</title>
<!–必须的频道节点:link,响应频道的网站URL–>
<link>http://lib.jnu.edu.cn/</link>
<!–必须的频道节点:description,频道的描述–>
<description>暨南大学图书馆新闻订阅.</description>
<!–必须频道节点结束–>
<!–以下为可选的频道节点–>
<!–语种:language–>
<language>zh-cn</language>
<!–版权声明:copyright–>
<copyright>Copyright 2006
暨南大学图书馆. All Rights Reserved.</copyright>
<!–负责人EMAIL:managingEditor–>
<managingEditor>jnuzyx@126.com</managingEditor>
<!–技术人员EMAIL:webMaster–>
<webMaster>jnuzyx@126.com</webMaster>
<!–发布时间:pubDate–>
<pubDate>Fri, 08 Sep 2006
18:00:00 GMT+8</pubDate>
<!–最后更新时间:lastBuildDate–>
<lastBuildDate>Fri, 08
Sep 2006 20:00:00 GMT+8</lastBuildDate>
<!–频道所属的分类:category,可多个,要遵循与ITEM级category元素相同的规则,所以一般在此不标注,而在ITEM级标注分类–>
<category>新闻</category>
<!–生成频道的程序名称:generator–>
<generator>JNULRSS
1.0(beta)</generator>
<!–指向RSS格式解释文档的URL:docs,用以向需要了解更多的人介绍RSS的格式情况–>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<!–可以忽略的时段:skipHours,0-24–>
<skipHours>0</skipHours>
<!–可以忽略的天:skipDays,星期–>
<skipDays>Sunday</skipDays>
<!–cache生命周期:ttl,分–>
<ttl>60</ttl>
<!–频道的统计图片地址:rating,未用过–>
<rating></rating>
<!–指定rssCloud接口的WEB服务:cloud,rssCloud接口可以用HTTP-POST,XML-RPC或SOAP1.1实现,目的是允许通知注册为cloud的进程频道被更新,从而实现一个轻量级的发布订阅协议,这个还不是很明白:(–>
<cloud domain=”rpc.sys.com”
port=”80″ path=”/RPC2″ registerProcedure=”myCloud.rssPleaseNotify”
protocol=”xml-rpc” />
<!–频道LOGO:image,jpg,png,gif格式,3个必选子节点及3个可选子节点–>
<!–image节点开始–>
<image>
<!–image节点必选子节点–>
<!–LOGO文件的URL地址:url–>
<url>http://lib.jnu.edu.cn/rss/img/logo.jpg</url>
<!–LOGO标题:title,相当于alt属性,应与频道的title节点值相同–>
<title>暨南大学图书馆新闻订阅</title>
<!–LOGO的链接:link,应与频道的link节点值相同–>
<link>http://lib.jnu.edu.cn/</link>
<!–image节点可选子节点–>
<!–LOGO的宽度:width,默认为88,最大为144,单位为像素–>
<width>88</width>
<!–LOGO的高度:height,默认为31,最大为400,单位为像素–>
<height>31</height>
<!–LOGO描述:description,未用过–>
<description></description>
</image>
<!–image节点结束–>
<!–频道可嵌入的textInput表单,包含4个可选子节点,可以用它提供一个搜索引擎输入框,或让读者提供反馈信息,不常用。–>
<!–textInput节点开始–>
<textInput>
<!–表单的提交按钮的标签:title–>
<title>搜索</title>
<!–表单的文本输入区的描述:description–>
<description>百度一下</description>
<!–表单的文本输入区的名称:name–>
<name>关键词</name>
<!–表单提交的URL
:link–>
<link>http://www.baidu.com/s</link>
</textInput>
<!–textInput节点结束–>
<!–可选频道节点结束–>
<!–必须的,可重用的频道节点:item,频道的项目,一个条目可表示一条记录–>
<item>
<!–所有子节点都是可选的,但应该包含title,description子节点–>
<!–标题:title–>
<title>置顶新闻:9月14日学而优书店现场选书通知</title>
<!–记录的URL:link–>
<link>http://lib.jnu.edu.cn/show.jsp?ID=720</link>
<!–描述:description,可以通过使用CDATA部件,告诉解析器忽略描述内容中的HTML解释–>
<description><![CDATA[<a
href="http://lib.jnu.edu.cn/show.jsp?ID=720">查看详细报道</a>]]></description>
<!–作者的EMAIL:author–>
<author>ocat@jnu.edu.cn</author>
<!–分类:category,可以是一个或多个–>
<category>通知</category>
<!–评论地址:comments–>
<comments>http://lib.jnu.edu.cn/feedback/showfeedback.jsp?sysname=新闻系统&itemid=720</comments>
<!–附加的媒体对象:enclosure,有三个必须属性,url属性,length指出它的字节大小,type属性指出它的标准MIME类型–>
<!–<enclosure
url=”http://lib.jnu.edu.cn/upfile/vpn.wmv”
length=”6742080″ type=”audio/mpeg” />–>
<!–rss来源频道名称:source,从item的title衍生而来,有一个必须包含的属性url,链接到XML序列化源,作用是提高连接的声望–>
<source
url=”http://lib.jnu.edu.cn/rss/news.xml”>jnul
news</source>
<!–item发布时间:pubDate–>
<pubDate>Fri,
08 Sep 2006 20:00:00 GMT+8</pubDate>
<!–唯一确定item的字符串:guid–>
<guid>http://lib.jnu.edu.cn/show.jsp?ID=720</guid>
</item>
<item>
<title>好消息:西文全文电子期刊统一检索系统正式推出使用</title>
<description>西文电子期刊导航</description>
</item>
<!–item结束–>
</channel>
</rss>
RSS is a Web content syndication format.
Its name is an acronym for Really Simple
Syndication.
RSS is a dialect of XML. All RSS files must conform to the XML 1.0
specification, as published on the
World Wide Web Consortium (W3C) website.
A summary of
RSS version history.
At the top level, a RSS document is a <rss> element, with a
mandatory attribute called version, that specifies the version of
RSS that the document conforms to. If it conforms to this
specification, the version attribute must be 2.0.
Subordinate to the <rss> element is a single <channel>
element, which contains information about the channel (metadata)
and its contents.