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.org.cn</link>
<description>免费网页制作教程</description>
<item>
<title>RSS 教程</title>
<link>https://w3schools.org.cn/xml/xml_rss.asp</link>
<description>W3Schools 上的新 RSS 教程</description>
<guid>https://w3schools.org.cn/xml/item0768</guid>
</item>
</channel>
</rss>
自己动手试一试 »
❮ 完整的 RSS 参考