How to create the Web Site RSS and XML Guide?

電腦問題求助 有問必答 手提電腦, 電腦問答, 電腦維修及修理, computer, software, hardware, network, tips and more.
回覆文章
chats
文章: 1
註冊時間: 2010-08-10, 03:56

How to create the Web Site RSS and XML Guide?

文章 chats »

How to create the Web Site RSS and XML Guide?

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>
>> An RSS file is an XML file. Some characters are illegal in XML.

& - 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 &apos;
- For example: It's his bike. becomes It&apos;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;

脸书 | 推特 | 電郵 | WhatsApp | 微博 | 微信 | 分享推荐按钮
回覆文章

回到「電腦資訊 電腦技術 有問必答 Computer Tech, Software, Hardware, Q&A」