Explicitcoder

Divyang's ICollection

Atom v/s RSS

Hi friends,
  to follow’s  our favorite blogs or websites, usually we subscribe Atom or RSS feed  provided by those blogs or  websites. so one should  know the difference  and similarity between them


Similarity

  1.   Atom 1.0 and  RSS 2.0 both are used to  published  blogs or website  updates to their subscriber
  2.   They are commonly called as  feed or web feed or channel which used by website to inform their subscriber about websites updated content.
  3.  Both have their  own specified xml format

Atom 1.0

RSS 2.0

Atom full name is  Atom Syndication Format

RSS means  Really Simple Syndication of  web feed

Atom has 2 variants and it  news feed format design as compare to  RSS

RSS  has 9 variants and it is  older  feed format

Atom is a relatively recent spec and is much more robust and feature-rich than RSS.

RSS 2.0 has the widest acceptance of any feed format but also has significant downfalls.

Atom has one standardized publishing protocols

RSS has two  publishing protocols

Atom has restrictive approaches to validate content data

RSS has a more loose approach to validate content data

Atom provides a mechanism to explicitly and unambiguously define the type of content being provided by the entry, and allows for a broad variety of payload types including plain text, escaped html, xhtml, xml, Base64-encoded binary, and references to external content such as documents, video, audio streams, and so forth.

RSS takes escaped HTML or plain text in their data publishing

Atom web feed specification  used working group instead of  timestamps formatted according to the rules specified by RFC 3339

RSS 2.0 specification relies on the use of RFC 822 formatted timestamps to communicate information about when items in the feed were created and last updated

Atom uses the standard xml:lang attribute to make it possible to specify a language context for every piece of human readable content in the feed

RSS vocabulary has a mechanism to indicate a human language for the feed, there is no way to specify a language for individual items or text elements.

File format  .atom or .xml

.rss or .xml 

RSS  2.0 sample xml code
version=“1.0″ encoding=“UTF-8″ ?>
version=“2.0″>
       
        this is my test feed description
        http://www.divyangpanchasara.com/main.html
        Mon, 27 Jul 2011 00:01:00 +0000
        Mon, 06 Sep 2009 16:45:00 +0000
       
               
                Here is some text containing an interesting description.
                http://www.hitechito.com/
                unique string per item
                Mon, 06 Sep 2009 16:45:00 +0000
       
Atom 1.0  sample xml code
version=“1.0″ encoding=“utf-8″?>
xmlns=“http://www.w3.org/2005/Atom”>
       
        A subtitle.
        http://divyangpanchasara.com/” />
        urn:uuid:63ab6c80-d399-11d9-b91C-0003939e0af6
        2011-06-27T18:30:02Z
       
                Divyang Panchasara
                divyang@divyangpanchasara.com
       
       
               
                href=”http://divyangpanchasara/2011/06/27/atom03” />
                rel=“alternate” type=“text/html” href=“http://divyangpanchasara/2011/06/27/atom03.html”/>
                rel=“edit” href=http://divyangpanchasara/2011/06/27/atom03/edit”/>
                urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
                2011-06-27T18:30:02Z
               
Some text.
       
compile by
Divyang Panchasara
Sr. Programmer Analyst
Hitech OutSourcing

Leave a Reply

Your email address will not be published. Required fields are marked *