2007年02月15日 星期四 06:04 P.M.
RSS2.0元素channel的子元素列表
元素 |
描述 |
值域 |
重要性 |
舉例 |
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 |
頻道內(nèi)容的版權(quán)說明 |
|
可選 |
Copyright 2002, Spartanburg Herald-Journal |
managingEditor |
責任編輯的email |
|
可選 |
geo@herald.com (George Matesky) |
webMaster |
負責頻道技術(shù)事務(wù)的網(wǎng)站管理員email |
|
可選 |
betty@herald.com (Betty Guernsey) |
pubDate |
頻道內(nèi)容發(fā)布日期,格式遵循RFC822格式(年份可為2們或4位) |
|
可選 |
Sat, 07 Sep 2002 00:00:01 GMT |
lastBuildDate |
頻道內(nèi)容最后的修改日期 |
|
可選 |
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 h[url=file:///C:/Documents%20and%20Settings/Administrator/桌面/r<a%20href=]erere[/url]" target="_blank" class="keylink">ere. |
|
可選 |
<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) |
描述 |
值域 |
重要性 |
舉例(Example) |
url |
圖片的url |
|
必備 |
|
title |
圖片的標題,用于http的alt屬性 |
|
必備 |
|
link |
網(wǎng)站的url(實際中常以頻道的url代替) |
|
必備 |
|
width |
圖片的寬度(象素為單位) |
最大144,默認88 |
可選 |
|
height |
圖片的高度(象素為單位) |
最大400,默認31 |
可選 |
|
description |
用于link的title屬性 |
|
可選 |
|
RSS2.0元素channel的子元素cloud的子元素列表
元素(Element) |
描述 |
值域 |
重要性 |
舉例(Example) |
domain |
Cloud程序所在機器的域名或IP地址 |
|
|
radio.xmlstoragesystem.com |
port |
訪問clound程序所通過的端口 |
|
|
80 |
path |
程序所在路徑(不一定是真實路徑) |
|
|
/RPC2 |
registerProcedure |
注冊的可提供的服務(wù)或過程 |
|
|
xmlStorageSystem.rssPleaseNotify |
protocol |
協(xié)議 |
xml-rpc, soap , http-post 之一 |
|
xml-rpc |
RSS2.0元素channel的子元素textInput的子元素列表
元素(Element) |
描述 |
值域 |
重要性 |
舉例(Example) |
title |
Submit按鈕的標簽 |
|
必備 |
|
description |
解釋text輸入?yún)^(qū) |
|
必備 |
|
name |
Text area對象的名字 |
|
必備 |
|
link |
處理提交的請求的cgi程序 |
|
必備 |
|
附格式:
<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[網(wǎng)站名]]></title>
<image>
<title>注釋</title>
<link>目標</link>
<url>圖片路徑</url>
</image>
<description><![CDATA[網(wǎng)站描述]]></description>
<link>網(wǎng)站網(wǎng)址</link>
<language>zh-cn(語言)</language>
<generator>生成本頁的程序名</generator>
<ttl>頁面在緩存在有效時間(分)</ttl>
<item>
<title xmlns:cf="
<link></link>
<description xmlns:cf="
</description>
<pubDate>發(fā)表時間</pubDate>
<atom:published xmlns:atom="http://www.w3.org/2005/Atom">日期T時間Z</atom:published>
<atom:updated xmlns:atom="http://www.w3.org/2005/Atom">日期T時間Z</atom:updated>
<category>分類</category>
<author>作者</author>
<atom:author xmlns:atom="
<atom:name>作者介紹之作者名</atom:name>
</atom:author>
<guid>文章路徑</guid>
<cfi:id>0</cfi:id>
<cfi:read>true</cfi:read>
<cfi:downloadurl>源的下載地址</cfi:downloadurl>
<cfi:lastdownloadtime>源的最后更新時間2007-02-15T08:03:21.515Z</cfi:lastdownloadtime>
</item>
</channel>
</rss>
示例http://hi.baidu.com/eachcan/rss
|