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