Latest web development tutorials
 

RSS <guid> Element


< Complete RSS Reference

Definition and Usage

The <guid> element defines a unique identifier for the item.


Tips and Notes

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.

Tip: GUID = Globally Unique Identifier.


Attributes

Attribute Description
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

Example

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">

<channel>
  <title>w3ii Home Page</title>
  <link>http://www.w3ii.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3ii.com/xml/xml_rss.html</link>
    <description>New RSS tutorial on w3ii</description>
    <guid>http://www.w3ii.com/xml/item0768</guid>
  </item>
</channel>

</rss>

Try it Yourself »

< Complete RSS Reference