RSS Interview Questions And Answers

RSS Interview Questions And Answers

More interview questions and answers

WHat do you mean by RSS?

RSS stand for Really Simple Syndication.
Basic definition of RSS is that Simply RSS is a method which use XML to distribute web of one web site to many other web sites.

 I have given you some other main points regarding RSS.

  1. Using RSS we can perform fast browsing for news and also use to update them.
  2. Using RSS we can syndicate our site content
  3. RSS gives us an easy way to share and view headlines and content.
  4. RSS files can be updated automatically.
  5. Using RSS we use personal views for different sites.
  6. RSS is also written in XML.
 

Tell me why we use RSS?

 I have given you some main reasons to use RSS.

Suppose that if you like to check your website for new updates daily without using RSS.
So, May be it consumes more time for many users.Where wih RSS feed you can cheak your web site much faster with use of RSS aggregator.(RSS feed: RSS is often called as News feed or RSS feed.
RSS aggregator: This is an site program which is used to gathers and sorts out RSS feeds.)

Because RSS data is small and loaded very fastSo, it can easily attach with cell phones and PDA\'s.

Using RSS we can share data easily which is used in web site to made them much better and useful.

Tell me history of RSS?

I have given you history of RSS in brief.Their are many versions of RSS has been released.

In 1997 Dave Winter develop scripting news.This is first born of RSS.
In 1999 Netscape develops RSS 0.90(simply XML with an RDF Header).
In 1999 Dave Winer at UserLand develops scriptingNews 2.0b1(It has also Netscape\'s RSS 0.90 features)
In 1999 Netscape has develops RSS 0.91.(This RSS version has no RDF header but it has other most important features from scriptingNews 2.0b1.
In 1999 UserLand gets rid of scriptingNews and uses only RSS 0.91
 Netscape has stop their RSS development.
In 2000 UserLand has release the official version of RSS called RSS 0.91 specification.
In 2000 RSS 1.0 has lunched by a group lead by Rael Dornfest at O\'Reilly.This format of RSS uses both RDF and namespaces.
In 2000 RSS 0.92 developes by Dave Winer at UserLand.
In 2002 RSS 2.0 developes by Dave Winer after leaving Userland.
In 2003 The official version of RSS 2.0 specification is released.

Give us RSS version which is much easier to understand?

RSS 0.91 and RSS 2.0 are two version of RSS which are much easier to understand than RSS 1.0.  

How you define syntax of RSS?

 The syntax rules of RSS 2.0 are much easy to learn and easy to use.
Syntax Rule:
1. first you have to declare XML and define XML version and uses the ISO-8859-1(Latin-1/West European) character set.
<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
<rss version=\"2.0\">
2.Second line of syntax is RSS declaration that is use to define RSS document.
3.After that we write <channel> element tag.This tag is used to describe RSS feed.
4.To define <channel> you required three child element.These are:
4.1<title>: This tag is used to define the title of the channel.
4.2<link>: Using this tag we can define the hyperlink to channel.
4.3<description>: Using this tag we can describe the channel.
5.Each channel element may contain one or more  <item> element.
6.We use <item> element to define an article in RSS feed.
7.Also to define <item> element you have required tthese three elements.
7.1<title>: This is use to define title of item.
7.2<link>: This is use to define the hyperlink to item.
7.3<description>: This is used to write description of item.
8.After defining above tags you have to close the open tag elements <channel> and <rss>.      

Example:This example definitely explain you how to use above tags in RSS.

<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
<rss version=\"2.0\">
<channel>
  <title>Home Page of R4R</title>
  <link>http://www.r4r.co.in</link>
  <description>Huge collection of interview questions</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.r4r.co.in/rss</link>
    <description>RSS tutorial on R4R</description>
  </item>
  <item>
    <title>HTML Tutorial</title>
    <link>http://www.r4r.co.in/html</link>
    <description>HTML tutorial on R4R
    </description>
  </item>
</channel>
</rss>


We can also write comment in RSS like that,
<!-- Here write the RSS comment -->

How we can say RSS is written in XML?

 I have you some features of RSS that are exactly same as XML.

  1. In RSS all elements must have a close tag.
  2. All elements are case-sensitive.
  3. All elements should have proper nested.
  4. All attribute values must be quoted.


    Above features of RSS are same as features in XML.

How you define channel element in RSS?

 Using <channel> element in RSS we can describe the RSS feed.
TO define <channel> element you have required these three elements.
<title>: Using <title> tag we can set the title of channel.
<link>: We use <link> tag to set the huperlink to channel.
<description>: Use to descrise the channel.
 <channel> element also have one or more <item> element.We use <item> to define article in RSS feed.Each <item> element also have <title>,<link> and <decription> child(Which define in respect of item).

Example:
<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
<rss version=\"2.0\">
<channel>
  <title>R4R Home Page</title>
  <link>http://www.r4r.co.in</link>
  <description>Huge collection of interview questions</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.r4r.co.in/rss</link>
    <description>RSS tutorial on R4R</description>
  </item>
</channel>
</rss>

How to define category element in RSS?

 In RSS we use <category> child element to define category for your RSS feed.

 Using <category> element RSS aggregator can grouped the web sites on the base of category.

Example:
I show you how to define <category> element in RSS document.
<category>Web Designing</category>

How to define copyright element in RSS?

Using <copyright> we can notify about our copyrighted data.

Example: I have shown you how to use copyright element.
<copyright>All rights reserved by R4R</copyright>

How to define image element in RSS?

Using <image> child element we can display an image when aggregators presents a RSS feed.
To define <image> element tag you have to use these three child elements.
1.<url>: This is used to define the URL of image.
2.<title>: This is use to define the text to display if an image could not be shown.
3.<link>: This is used to define the hyperlink to the website that offers the channel.

Example:I have given you example which show you how to define the <Image> child element in RSS.

<image>
  <url>http://www.r4r.co.in/images/logo.gif</url>
  <title>r4r.co.in</title>
  <link>http://www.r4r.co.in</link>
</image>

How to define language element in RSS?

Using <language> child element we can define which language we used in our RSS document.
I also helps the RSS aggregators to make group of sites that are based on language.

Example: I have given you example how to define an language child element.

<language>en-uk</language>

How to define item element in RSS?

 We use each <item> element in RSS to define an article.
To define an <item> element you must have to use these three child element.

<title>: This is used to define the title of item.
<link>: This is use to define the hyperlink to the item.
<description>: This is use to describe an item.

Example:This example explain how to use <item> element in RSS.

<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
<rss version=\"2.0\">
<channel>
  <title>Home Page of R4R</title>
  <link>http://www.r4r.co.in</link>
  <description>huge collection of interview questions</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.r4r.co.in/rss</link>
    <description>RSS tutorial on R4R</description>
  </item>
</channel>
</rss>

How to define an author element in RSS?

 Using <author> child element in RSS we can define the E-mail address of author of an item.

Example: Example explains how to use <author> element.

<author>tom@refsnesdata.no</author>

But it has a drawback also some developers doesn\'t like to use <author> element when they want to prevent spam E-mails. 

How to use comments element in RSS?

Using <comments> child element we can link an item with comment.

Example: This explain you how to use <comments> element in RSS.

<comments>http://www.r4r.co.in/comments</comments>

How to define enclosure element in RSS?

Using <enclosure> element we can include an media file with an item.

To define <enclosure> element in RSS you have required to define thes three elements.
url: This is use to define URL of media file.
length: Using this we define the lenth of media file in bytes.
type: This is use to define the type of media file.

Example: This show you how to use <enclosure> element in RSS.
<enclosure url=\"http://www.r4r.co.in/rss/mediafile.mp3\" length=\"4500\" type=\"audio/mp3\" />

Why we use pubDate, source and title element in RSS?

 We use also <pubdate>, <source> and <title> elements with in <item> child element.
Where as

<pubDate> element is used to define the last publication date of an item.
<source> element is used to define the third-party source of an item.
<title> element is used to define the title of an item.

In above elements <pubDate> and <source> are optional where as <title> is compulsory when we define RSS document.

What the role of publish in RSS feed?

Suppose that you made an RSS document and not publish them.
Than their is no mean of this RSS document because other people can\'t reach that document. So, you have to publish RSS document to make this document reachable by other people.I have given you some steps that explain you how to upload an RSS document.

Step1: Your RSS file should have .xml extension.
Step2: You should validate your RSS file using an validator.
Step3: Now, you upload an RSS file into your web directory on your web server.
Step4: Than you have to copy the orange color RSS or XML button into your web directory.

Step5: Than now put an RSS button into your Home page.Thanlink that button to the RSS file.Write i have given you code to perform that task
.Example:
<a href=\"www.r4r.co.in/rss/rssexample.xml\">
< img src=\"www.r4r.co.in/rss/rssimage.gif\" width=\"45\" height=\"22\">
</a>.

Step6: Now, submit your RSS feed to the RSS feed directry.Url that you use not define your home page it is used to define your RSS feed.Example:\"http://www.r4r.co.in/rss/rssexample.xml\"

Step7: Than you register your RSS feed with search engines.I have given you name of some major search engines.Like: yahoo,Google,MSN.

Step8:Now, at last update content of your RSS feed. Because you have registered your RSS feed with search engines Like: Google,Yahoo and MSN etc.

What is automated RSS?

 We use automated RSS when we don\'t want to update our RSS feed ourself. There are many tools and services are available that are used to create automated RSS.Some tools are:

MyRSSCreator: This tool offers an automated, reliable RSS service in just 10 minutes.
FeedFire: This tools offers a free creation and distribution of RSS feeds.

some services are:
Blogger
Radio

Why we use RSS Reader?

 We use RSS Reader to read RSS Feeds.Their are many RSS Reader are available for different devices and Operating System.

Their are many RSS Reader are available.
NewsGator Online
RssReader
FeedDemon
Blogbot

RSS Interview Questions And Answers