Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exposing data in an atom feed

Tags:

atom-feed

feed

How do I add extra data into an atom feed that does not map into the standard entry nodes (title, link, id, updated, summary)? Is it possible to add my own custom xml here and still be compliant with the spec?

like image 519
NabilS Avatar asked Nov 03 '08 21:11

NabilS


People also ask

What is the difference between Atom feed and RSS feed?

Each atom feed contains an explicit declaration of the format of the content along with what language is used. RSS feeds do not declare its content, but since it only contains plain text or escaped HTML, it is rather easy for the browser to distinguish which is which. A major flaw of RSS is in its code.

How do you use Atom feeds?

To "subscribe" to a site feed, whether RSS or ATOM, you need a feed reader. Simply point the reader to the URL (address) of the site feed, and it will do the rest: it will display the contents of the feed in a window or panel for you. The feed will look like a series of messages.

What is atom link in RSS feed?

RSS/Atom feeds give good hints about where to find the most recently updated pages. If your website provides an RSS or Atom feed, our crawler will download it to find new links on your site to index first. This is particularly useful when Site Search is doing an incremental update of your website.


1 Answers

There are several different ways documented at http://www.atomenabled.org/developers/syndication/atom-format-spec.php#extending_atom.

You can add extension elements at the end of your atom:entry.

<atom:entry>
   <!--- all the normal stuff --->
   <mything:Thing xmlns:mything="http://example.com/example.xsd">
      <!--- whatever --->
   </mything:Thing>
</atom:entry>
like image 176
Doug McClean Avatar answered Sep 29 '22 10:09

Doug McClean