There are 2 document types defined for Atom feed files:
► Atom Feed Document - Representing an Atom feed, including metadata about the feed, and some or all of the entries associated with it. Its root element is the <feed> element.
► Atom Entry Document - Representing only one Atom entry. Its root element is the <entry> element.
Yes. Atom feed files are XML (eXtensible Markup Language) documents. Atom feed files must be well-formed XML documents, respecting the following XML rules.
► The first line must be the "xml" processing instruction with "version" and "encoding" attributes.
► There must be only one root element in a single XML document.
► All elements must be closed with the closing tags.
► One element can be nested inside another element.
► One element can not be partially nested inside another element.
► Element attribute values must be quoted with double quotes.
► Special characters in element attribute values or element contents must be protected using entities, like < and >.
When you use a FireFox browser visiting a Web page that has an Atom feed define, FireFox will display a "live bookmark" icon in the status bar. You can click the "live bookmark" to add the Atom feed to the bookmark list.
If you want to see FireFox's "live bookmark" icon, you can use a FireFox browser to visit the "webmaster.html" page created in previous tutorials. You will the "live bookmark" icon displayed in the status bar at the right bottom corner as shown in the picture below:
FireFox Live Bookmark Icon
Clicking on the "live bookmark" icon, the Atom feed file "atom.xml" will show up to allow you to select and add to the bookmark list.
One way to tell Web browsers that your Web pages have Atom Feed files is to add a "link" tag in the header section of your Web pages. The "link" tag defines a "link" element with 4 attributes:
* rel="alternate" - Defines the relation of this Web page and the Atom feed file.
* type="application/atom+xml" - Defines the MIME type of the Atom feed file.
* href="urlOfAtomFeedFile" - Defines the location of the Atom feed file.
* title="titleOfTheFeed" - Defines the title of the Atom feed file.
The following Web page contains a "link" tag good example that associate an Atom feed to this page:
<html><head>
<title>Webmaster GlobalGuideLine</title>
<link rel="alternate" type="application/atom+xml"
href="atom.xml" title="Atom feed for FAQ pages">
</head><body>
<p>Definitions of Webmaster on the Web:</p>
<li>The person responsible for maintaining and
updating a Web site.</li>
<li>The administrator, maintainer and/or creater
of a web site.<li>
<li>The person who lays out the information trees,
designs the look, codes HTML pages, handles editing
and additions and checks that links are intact.</li>
There are several ways you can tell your visitors that you have Atom syndication feeds available on your Web site:
► Showing your syndication feed URLs as hyper links with the Atom syndication icon.
► Adding a <link> tag in your regular Web pages to allow browsers to show the RSS boomark icons.
► Making your Atom feed file name to be "atom.xml" to allow browsers and search engines to auto discover feeds.
Webmaster 23rd of May 2012
Tell us what you feel about Really Simple Syndication (RSS) Programming Interview Questions and Answers
All comments will be published after review. No login or registration is required to post a comment on Really Simple Syndication (RSS) Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
So start sharing your thoughts regarding Really Simple Syndication (RSS) Programming Interview Questions and Answers
Thank you.