First let us understand what is RSS feed:
It is a format to share data, defined in the 1.0 version of XML. We can provide information in this format and get this information, and also get information in this format from various other sources. Information provided by a website in an XML file is called an RSS feed.
Use of RSS?
To get news or other information provided by websites in a computer understandable format . To display the information on the website or read it ourself, it also allows to send news about the site.
Main RSS tags
rss: It is a global container.
channel : It is a distributing channel. It has several descriptive tags.
<rss version="2.0">
<channel>
...
</channel>
</rss>
Required tags for the channel
- title: The title of the channel. Should contains the name.
- Link: URL of the website that provides this channel.
- Description: Summary of what the provider is.
- Item:one item tag at least, for the content.
<rss version="2.0">
<channel>
<title>RSS Feed</title>
<link>http://yourdomain/index.php</link>
<description></description>
<item>
...
</item>
</channel>
</rss>
Items of the channel
Each item tag must hold these tags:
- title. Title of the article.
- link. The URL of the page.
- description. Summary of the article.
<item>
<title>Latest Update</title>
<link>http://www.mydomain/index.php</link>
<description>... some description...</description>
</item>
For more information please use the following url:
http://www.xul.fr/en-xml-rss.html
0 Comment(s)