How To Generate a Feed id Element

Q

How To Generate a Feed id Element? - RSS FAQs - Atom Feed File Structure and Elements

✍: FYIcenter.com

A

The <id> element is a required sub-element of the <feed> element. The Atom specification requires that you provide a universally unique identifier for each of your feeds. So how to make this identifier universally unique?

One strategy is to use the URL where the feed document is located. For example, if your Atom feed document is located at: http://dev.fyicenter.com/atom.xml, you use the following id element in this feed document:

 <id>http://dev.fyicenter.com/atom.xml</id>

2007-05-12, 4623👍, 0💬