Home >> FAQs/Tutorials >> RSS Tutorials >> Index

RSS Tutorials - Generating a Feed Entry link Element

By: FYIcenter.com

(Continued from previous topic...)

How To Generate a Feed Entry link Element?

The <link> element is not a required sub-element of the <entry> element. But it is strongly recommended that you provide a link element with rel="alternate" for each of your feed entries.

The rule for feed entry link element is simple. It needs two attributes:

  • rel="alternate" - Indicating that this link is providing the URL of an alternate version of the content of this feed entry.
  • href="urlOfTheContent" - Specifying the URL of the content of this feed entry.

For example, if you have a feed document that contains a feed entry to represent the most popular FAQ entry of the week. Of course, that most popular entry is a Web page with a URL like http://dev.fyicenter.com/faq/rss. you should generate the link element for this feed entry like this:

 <link rel="alternate" href="http://dev.fyicenter.com/faq/rss"/>

(Continued on next topic...)

  1. Are Atom Feed Files XML Documents?
  2. How Many Document Types Are Defined for Atom Feed Files?
  3. What Is the Structure of Atom Feed Documents?
  4. What Are Sub-elements of the feed Element?
  5. How To Generate a Feed title Element?
  6. How To Generate a Feed subtitle Element?
  7. How To Generate a Feed link Element?
  8. How To Generate a Feed id Element?
  9. How To Generate a Feed update Element?
  10. How To Generate a Feed author Element?
  11. How To Generate a Feed category Element?
  12. What Are Sub-elements of the entry Element?
  13. How To Generate a Feed Entry link Element?
  14. How To Generate a Feed Entry title Element?
  15. How To Generate a Feed Entry summary Element?
  16. Can One Atom Feed Document Have Multiple Entries?

Selected Developer Jobs:

More...