Really Simple Syndication (RSS)

  Home  Web Servers / Services  Really Simple Syndication (RSS)


“Learn Really Simple Syndication (RSS) by RSS programming interview questions and answers”



25 Really Simple Syndication (RSS) Questions And Answers

21⟩ How To Tell Web Browsers That Your Web Pages Have Atom Feeds?

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>

 229 views

22⟩ What Happens When FireFox Knows a Web Page Has Atom Feeds?

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.

 211 views

23⟩ Is There Any XSD File to Validate Atom Feed Files?

A XSD (XML Schema Definition) file contains a set of definitions of XML elements and attributes to form a new XML based language. The same DTD file can be used to validate XML files that comply with the new language.

Atom feed files are XML based, but there seems to be no XSD files exist to validate Atom feed files.

 225 views

24⟩ Are Atom Feed Files XML Documents?

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 >.

 199 views

25⟩ How Many Document Types Are Defined for Atom Feed Files?

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.

 222 views