A feed, also known as RSS feed, XML feed, syndicated content, or web feed, is frequently updated content published by a website. It is usually used for news and blog websites, but can also be used for distributing other types of digital content, including pictures, audio, or video. Feeds can also be used to deliver audio content (usually in MP3 format) which you can listen to on your computer or MP3 player. This is referred to as podcasting.
>> Example of a RSS file.
代碼: 選擇全部
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Web site title</title>
<atom:link href="http://www.youwebsite.com/RSS/rss-feed.xml" rel="self" type="application/rss+xml" />
<link>http://www.youwebsite.com</link>
<description> Enter your web site rss description here .....
</description>
<language>en-us</language>
<item>
<title> item title 1</title>
<link>http://www.yourwebsite.com/abc1.html</link>
<guid>http://www.yourwebsite.com/abc1.html</guid>
<description>how to create or add web site rss description testing... 1 ...
</description>
</item>
<item>
<title> item title 2</title>
<link>http://www.yourwebsite.com/abc2.html</link>
<guid>http://www.yourwebsite.com/abc2.html</guid>
<description>how to create the web site rss xml and ... description testing.... 2...
</description>
</item>
& - replace all instances of '&' with the following: &
- Don't forget the URL! Many URLs have ampersands in them.
- If a link element is http://www.mysite.com/index.cgi?n=4&p=5" onclick="window.open(this.href);return false; then you must change it to http://www.mysite.com/index.cgi?n=4&p=5" onclick="window.open(this.href);return false;
" - change every full quote to "
- For example: He shouted, "Fire!" becomes, He shouted, "Fire!"
' - change every apostraphe to '
- For example: It's his bike. becomes It's his bike.
> - change every 'greater than' character to > - but DO NOT change them in the tags.
- For example, <description> am > three feet tall</description> becomes <description>I am > three feet tall</description>
< - change every 'less than' character tag to < - but DO NOT change them in the tags
- For example: "<description>I have < five dollars</description> becomes <description>I had < five dollars</description>
>> Uploading Your File
Upload your rss file(xml) to your web server. It is best to put it in the same directory as your home page, though you could place it anywhere you want.
>> Validate Your RSS File:
Don't assume your file is correctly coded. If not, it won't be read by RSS readers and all your hard work will be in vain.
Here are the RSS validators:
http://feedvalidator.org/" onclick="window.open(this.href);return false;
http://rss.scripting.com/" onclick="window.open(this.href);return false;
http://aggregator.userland.com/validator" onclick="window.open(this.href);return false;
http://feeds.archive.org/Fvalidator/" onclick="window.open(this.href);return false;
>> Announcing Your Feeds on Your Web Site:
To announce your feed on your site is to use http://www.FeedBurner.com" onclick="window.open(this.href);return false;. They provide a redirect URL (address) for your feed that your audience subscribes to.
The benefit is that if you move your blog and your RSS feed URL changes, you don't have to worry about losing your subscribers because the redirect URL they provide stays the same.
FeedBurner.com provides several methods of announcing your RSS feeds. You can display a traditional RSS button, rotate your feeds in banner-style on your web pages, etc.
>> Submit your site's RSS feed URL
Daypop: http://www.daypop.com/info/submit.htm" onclick="window.open(this.href);return false;
Syndic8: http://www.syndic8.com/suggest.php?Mode=data" onclick="window.open(this.href);return false;
Edu_RSS: http://www.downes.ca/cgi-bin/xml/feeds.cgi" onclick="window.open(this.href);return false;