What Is Atom in RSS?
An Atom is a XML document used to describe related information which is known as feeds. This document can contain elements or attributes from other XML namespaces. Atom is most commonly used for syndication of Web content such as Weblogs and news headlines to Web sites.
What Is Atom in RSS?
They both are similar technology developed for helping people receiving automatic updates. Bookmarking the website is the process before Atom / RSS and it is complicated trying to keep track of many book marked sites. By using Atom, the new web site content will be sent, each time the site is updated regularly.
An example of RSS document with explanation:The following is the RSS document.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>My Home Page</title>
<link>http://www.mysite.com</link>
<description>RSS tutorials for beginners</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.mysite.com/rss</link>
<description>RSS tutorials for community</description>
</item>
<item>
<title>Atom Tutorial</title>
<link>http://www.mysite.com/atom</link>
<description>Atom tutorials for the community</description>
</item>
</channel>
</rss>
- First line is the XML declaration
- Second line is the RSS declaration to identify the RSS document
- Next line contains <channel> element, used for describing the RSS feed
- <channel> element has 3 sub elements
1. <title> for defining the title of the item
2. <link> for defining the hyperlink of the item
3. <description> for describing the item
- And last 3 lines to close item, channel and rss tags.