RSS 2.0规范

channel部分

title 频道名称 必须
link 频道的URL 必须
Description 频道的描述 必须
language 频道文章所用语言 可选
copyright 频道版权说明 可选
managingEditor 管理者的email 可选
webMaster 网站管理员email 可选
pubDate 频道发布日期 可选 (注意时间必须是严格符合RFC-822)
lastBuildDate 频道最后修改日期 可选
category 频道类别 可选
generator 生成该频道的程序名 可选
docs 该RSS文件的URL 可选
ttl 有效期 可选
image 频道图标 可选
rating 频道等级 可选
skipHours 可跳过的小时 可选
skipDays 可跳过的天 可选

item部分

title 标题 必须
link 该文章的链接 必须
description 描述或称为摘要 必须
author 作者的email 可选
category 该文章的分类 可选
comments 该文章评论的链接 可选
enclosure 该文章附带的文件 可选
guid 该文章唯一的识别标志(目前没有规范,一般使用文章链接表示) 可选
pubDate 发表时间 可选
source 文章来源链接 可选

例子:

     < rss  version ="2.0" >
     < channel >
     < title >D.C Life </ title >
     < link >http://blog.it580.com/ </ link >
     < description >David && Cindy || XIAMI & &XlAMl. </ description >
     < language >zh-cn </ language >
     < pubdate >Tue, 10 Jun 2003 04:00:00 GMT </ pubdate >
     < lastbuilddate >Tue, 10 Jun 2003 09:41:01 GMT </ lastbuilddate >
     < generator >Xiami Edit </ generator >
     < managingeditor >editor@name.com </ managingeditor >
     < webmaster >webmaster@name.com </ webmaster >
     < item >
     < title >例子文件 </ title >
     < link >
    http://blog.it580.com/Sample_files.php
     </ link >
     < description >
    这是一个例子文件
     </ description >
     < pubdate >Tue, 03 Jun 2003 09:39:21 GMT </ pubdate >
     < guid >
    http://blog.it580.com/Sample_files.php
     </ guid >
     </ item >
     </ channel >

    </rss>


原文:http://www.csharpwin.com/dotnetspace/10597r8222.shtml

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值