RSS <guid> 元素
❮ 完整的 RSS 參考
定義和用法
The <guid> element defines a unique identifier for the item. (<guid>
元素定義項的唯一識別符號。)
提示和註釋
Note: Aggregators must view the guid as a string. There are no rules for the syntax. It's up to the creator of the RSS document, to establish the uniqueness of the string. (注意:聚合器必須將 guid 視為字串。語法沒有規則。由 RSS 文件的建立者來確定字串的唯一性。)
Tip: GUID = Globally Unique Identifier. (提示:GUID = 全球唯一識別符號。)
屬性
Attribute | 描述 |
---|---|
isPermaLink | Optional. If set to true, the reader may assume that it is a permalink to the item (a url that points to the full item described by the <item> element). The default value is true. If set to false, the guid may not be assumed to be a url (可選。如果設定為 true,閱讀器可以假定它是一個永久連結到該項(一個指向由 <item> 元素描述的完整項的 URL)。預設值為 true。如果設定為 false,則 guid 可能不能假定為 URL。) |
示例
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools 主頁</title>
<link>https://w3schools.tw</link>
<description>免費網頁製作教程</description>
<item>
<title>RSS 教程</title>
<link>https://w3schools.tw/xml/xml_rss.asp</link>
<description>W3Schools 上的新 RSS 教程</description>
<guid>https://w3schools.tw/xml/item0768</guid>
</item>
</channel>
</rss>
自己動手試一試 »
❮ 完整的 RSS 參考