Professional Documents
Culture Documents
frequently updated works such as blog entries, news headlines, audio and video in a
standardized format. Web feed benefit publishers by letting them syndicate content
automatically.RSS feeds can be read using software called an “RSS reader”, ”feed reader”,
or aggregator which can be web based, desktop based or mobile device based. A
standardized xml file format allows the information to be published once and viewed by
many different programs. The RSS reader checks the user’s subscribed feeds regularly for new
work, downloads Any updates that it finds, and provides a user interface to monitor and read
the feeds.
What is RSS?
RSS Example:
<channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>
The first line in the document - the XML declaration - defines the XML version and the
character encoding used in the document.
The next line contains the <channel> element. This element is used to describe the RSS feed.
<title> - Defines the title of the channel (e.g. W3Schools Home Page)
<link> - Defines the hyperlink to the channel (e.g. http://www.w3schools.com)
<description> - Describes the channel (e.g. Free web building tutorials)
RSS feeds are displayed by Internet Explorer 7 and Firefox 2. An RSS reader (or aggregator)
may also be installed on the operating system (Windows, Linux, Mac OS, etc...). resources.
Accessing the content depends upon the reader. This may be accomplished just by a click on
an "add" button to get the URL of the RSS feed, and let it added to a list of feeds.
2 - Using a feed on a website
The RSS feed is displayed as a list of titles (and optionally summaries). A click on a title
displays the new. Titles are updated automatically. A script in PHP or other language, builds
the list each time the page is displayed by loading the RSS file and extracting the data from
it. Some links to such tools are provided in resources.
Using the RSS library of PHP. A PHP script will build the XML file from titles and
descriptions of pages from the content of a page.
Use a specialized tool to extract the data from a page.
</rss>
<rss version="2.0">
<channel>
<title>Xul</title>
<link>http://www.xul.fr/en/</link>
<description></description>
<item>
</item>
</channel>
</rss>
<item>
<title>Xul news</title>
<link>http://www.xul.fr/en-xml-rss.html</link>
<description>... some text... </description>
</item>
<item>
<title>Xul news</title>
<link>http://www.xul.fr/en-xml-rss.html</link>
<description>... some text... </description>
</item>
The channel will be the same for all your RSS feeds. These tags are required:
- title: the title of your website, may be the one in the title tag of the home page.
- link: the URL of your website: example: http://www.xul.fr
- description: description of your website, about 200 characters, this may be the text
assigned to the content attribute of the description tag, in the head section of the home page
<channel>
<title>XUL and XML</title>
<link>http://www.xul.fr/en/</link>
<description>XML graphical interface etc...</description>
</channel>
2) Add an image
This is optional. Design a small image (88x31 for example) in a common format (gif, jpg, png)
and put in into the same directory that the RSS file.
The "image" tag is a sub-element of the channel tag
- url is the address of the image itself.
- link is the address of the page displayed when one clicks on the image.
<channel>
<title> </title>
<link> </link>
<image>
<url>http://www.xul.fr/xul.gif</url>
<link>http://www.xul.fr/en/index.php</link>
</image>
</channel>
3) Add a new
Now, we will add a web page to display an information. This is an "item" tag, a sub-element of
channel, and this components are required:
- title: the title of the article.
link: the URL of the page.
- description: a summary of the article, about 200 characters.
The RSS2SQL script allows you to easily create SQL databases from RSS feeds. When using
RSS2SQL script the publisher has complete control over the content in the resulting database.
Administrators and publishers control which RSS feed fields are used in the database, giving
them the flexibility to determine what data is inserted into the database.
RSS is beneficial to both publishers and website visitors. To keep things simple I have listed
just a few of the benefits for both publishers and website visitors.
1. Website visitors do not have to release personal information in order to subscribe to an RSS
feed.
2. 100% opt-in, users control the content they wish to receive.
3. Faster method for scanning content (saves time)
You enter the basic information (title, description, link) into the website form.
The website adds the XML RSS Feed Tags and generates the RSS Feed code.
You cut-and-paste the code into the RSS Feed file.
FTP or Upload the RSS Feed to the server.
Conclusion:
RSS is a wonderful tool to keep users informed about updates to web sites or podcasts.Sites
that frequently change or update information,such as new sites,or catalog sites that
frequently post new products or new articles,will find RSS a very useful tool.