RSS 元素

定义和用法

元素为 item 定义一个唯一的标识符。

ຄຳແນະນຳ ແລະ ຄວາມຄິດ

ຄຳແນະນຳ:GUID = ລະຫັດຄວາມສະຫຼາດທົ່ວໂລກ

Comment:The aggregator must treat guid as a string. There are no fixed syntax rules here. It depends on the document creator to determine the uniqueness of the string.

Attribute

Attribute Description
isPermaLink Optional. If set to true, the reader assumes it is a permanent link (pointing to the URL of all items described by the <item> element). The default value is True. If set to false, guid may not be assumed to be a URL.

Example

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
  <title>CodeW3C.com Home Page</title>
  <link>http://www.codew3c.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.codew3c.com/rss</link>
    <description>New RSS tutorial on CodeW3C.com</description>
    <guid>http://www.codew3c.com/rss/item5803</guid>
  </item>
</channel>
</rss>