Atom "feed/id" Element

Q

What is the Atom "feed/id" element? How To Generate a "feed/id" element?

✍: 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>

 

Atom Specification - RFC 4287

⇒⇒RSS FAQ and Tutorials

2017-09-25, 108👍, 0💬