元素 | 描述 | 范例 |
title | 頻道(channel)名稱。它可以告訴別人如何訪問你的服務。如果你有一個與你的RSS文件內容一致的HTML網站,你的title元素值應該與你的網站的標題相同。 | GoUpstate.com News Headings |
link | 響應該頻道的網站的URL | http://www.goupstate.com/ |
description | 關于該頻道的描述 | The latest news from GoUpstate.com, a Spartanburg Herald-Joural Web Site |
節點 | 描述 | 范例 |
language | 使用的語言。這允許聚合器對所有的意大利語站點分組。 | en-us |
copyright | 版權聲明 | Copyright 2002, Spartanburg Herald-Journal |
managingEditor | 內容負責人的Email | [email protected] (George Matesky) |
webMaster | 技術人員的Email | [email protected] (Betty Guernsey) |
pubDate | 內容的發布時間 | Sat, 07 Sep 2002 00:00:01 GMT |
lastBuildDate | 最后更新時間 | Sat, 07 Sep 2002 09:42:31 GMT |
category | 指定該頻道所屬的一個或多個分類。遵循與item級category元素相同的規則。 | <category>Newspapers</category> |
generator | 生成該頻道的程序名稱 | MightyInHouse Content System v2.3 |
docs | 指向rss格式文檔的url地址? | http://blogs.law.harvard.edu/tech/rss |
cloud | 允許所有進程注冊一個cloud用于獲得頻道的更新通知,并為rss種子實現一個輕量級的發布訂閱協議。 | <cloud domain="rpc.sys.com" port="80" path="/RPC2" registerProcedure="pingMe" protocol="soap"/> |
ttl | ttl是Time to live的縮寫。它指示cache的有效保存時間。 | <ttl>60</ttl> |
image | 與頻道一起顯示的圖片地址 | |
rating | 該頻道的統計圖片地址 | |
textInput | 指定一個textbox與該頻道一起顯示 | |
skipHours | 告訴使用者哪些時段是可以忽略的 | |
skipDays | 告訴使用著哪些天是可以忽略的 |
節點 | 描述 | 范例 |
title | item的標題 | Venice Film Festival Tries to Quit Sinking |
link | item的URL | http://www.nytimes.com/2002/09/07/movies/07FEST.html |
description | item概要 | Some of the most heated chatter at the Venice Film Festival this week was about the way that the arrival of the stars at the Palazzo del Cinema was being staged. |
author | 作者的email地址 | [email protected] |
category | item可以包含在一個或多個分類中 | Simpsons Characters |
comments | 與item相關的評論的地址 | http://www.myblog.org/cgi-local/mt/mt-comments.cgi?entry_id=290 |
enclosure | 附加的媒體對象 | |
guid | 可以唯一確定item的字符串 | http://inessential.com/2002/09/01.php#a2 |
pubDate | item發布的時間 | Sun, 19 May 2002 15:21:36 GMT |
source | rss頻道來源 | Quotes of the Day |
<item>子節點<guid>
<guid>是<item>的可選節點。
guid是globally unique identifier的縮寫。它是一個可以唯一識別item的字符串。當item發布之后,聚合器可以選擇使用該字符串判斷該item是否是新的。
<guid>http://some.server.com/weblogItem3207</guid>
guid沒有特定的語法規則,聚合器必須將他們看作一個字符串。生成具有唯一性的字符串guid取決于種子的源頭。
如果guid節點有isPermaLink屬性,并且值為真,讀取器就會認為它是item的permalink。permalink是一個可在web瀏覽器中打開的url鏈接,它指向<item>節點所描述的全部item。
<guid isPermaLink="true">http://inessential.com/2002/09/01.php#a2</guid>
isPermaLink是可選屬性,默認值為真。如果值為假,guid將不會被認為是一個url或指向任何對象的url。
<item>子節點<comment>
<comment>是<item>的可選節點。
如果出現,它指向該item評論的url
<comments>http://rateyourmusic.com/yaccs/commentsn/blogId=705245&itemId=271</comments>
<item>子節點<author>
<author>是<item>的可選節點。
它是item的作者的email。對于通過rss傳播的報紙和雜志,作者可能是寫該item所描述的文章的人。對于聚集型webblogs,作者可能不是責任編輯或站長。對于個人維護的webblog,忽略<author>節點是有意義的。
<author>[email protected] (Lawyer Boyer)</author>
新聞熱點
疑難解答