Login   Register  
PHP Classes
elePHPant
Icontem

atom:link

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Universal Feed Generator  >  All threads  >  atom:link  >  (Un) Subscribe thread alerts  
Subject:atom:link
Summary:Getting this warning....
Messages:1
Author:Michael Pawlowsky
Date:2014-03-26 23:29:12
 

  1. atom:link   Reply   Report abuse  
Picture of Michael Pawlowsky
Michael Pawlowsky
2014-03-26 23:29:12
When running my feed through a feed validator I get the following warning:

http://feedvalidator.org/


Message

Missing atom:link with rel="self"

Explanation

According to the RSS Advisory Board's Best Practices Profile, identifying a feed's URL within the feed makes it more portable, self-contained, and easier to cache. For these reasons, a feed should contain an atom:link used for this purpose.

Solution

If you haven't already done so, declare the Atom namespace at the top of your feed, thus:

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
Then insert a atom:link to your feed in the channel section. Below is an example to get you started. Be sure to replace the value of the href attribute with the URL of your feed.

<atom:link href="http://dallas.example.com/rss.xml" rel="self" type="application/rss+xml" />
Not clear? Disagree?

You might be able to find help in one of these fine resources.

http://feedvalidator.org/docs/howto/resources.html