You may be familiar with RSS and unfamiliar. It is familiar with you will see its figure on the international website or domestic formal "blog) website. It usually RSS0.9, RSS1.0, RSS2.0 or XML like a tag showing people, and strange is when you click on these tags, it is not your usual picture plus text, but a string XML Documentation. So, what is RSS? Let's take a full-scale contact.
RSS tag
(see picture 1)
Introduction to RSS
RSS is an abbreviation that can be expressed in a variety of extensions. Officially "RDF Summary", but it can also be explicated as "real Simple syndication", "Rich Site Summary". RSS is an application of XML technology. RSS can extract the latest news headlines, news outline, news connection, website logo, etc. from the website to form an XML document. It is swapped through the Internet Protocol (Most RSS Exchange is the simple HTTP GET of the RSS document), and you can use RSS NewsReader (a application that converts XML documents into you can read) Read it.
Maybe you will ask: I type the latest news directly on IE, I can see the latest news, why should I use RSS? Imagine, if you want to read the news of CNN, BBC, ABC News and Microsoft MSDN, you have to spend more time on your web browser, and spend more time on a web page Look for information you need. Or you may want to read the latest articles of "blog" you appreciate, but their articles are placed on different websites. Is there a way to read their masterpiece once? The emergence of RSS solves the above problems. You can type the RSS feed URL in your RSS NewsReader (that is, the URL connected to the RSS or XML tag), then RSS NewsReader will give you the information you need once. look. In fact, the emergence of RSS is adapted to network information personalized demand. We face massive information every day. If you enter a keyword in Google, you will have thousands of web directory, and we need it. Dozens of dozens of, how do you only have information we are interested in us, and ignore other useless information? Network developers put forward the concept of personalization, and RSS is one of its applications.
The emergence of RSS also provides huge convenience for the management of the website with "blog". They don't have to worry about people who don't pay attention to their website because they are afraid of trouble, as long as they provide RSS feed, people can easily browse their latest information, which is a good way to improve your browsing.
RSS is created in 1999 in 1999, which allows you to get content in many information sources into the NetCenter portal (this portal is no longer existed). Web fanatic enthusiasts in the Userland community have become the early supporters of RSS, and RSS will soon become a very popular format. Now you can see that RSS has three versions, named RSS0.9, RSS1.0 and RSS2.0. The relationship between them is not a general version upgrade, but there is a certain difference. RSS0.9 is an RDF-based approach that is the purpose of using a large number of RDF tools and modules. RSS1.0 chooses a more tightened way, RSS2.0 is a new version of non-RDF variants. Now the world's largest blog site, Google's bloger.com application is another format called Atom. Although the RSS now has a variety of versions, RSS is still one of the most successful XML services, which has become a community standard for exchange content information through the Web site. Now, many international portals, "blog" sites are using it. The blogging community is the main user of RSS. RSS look
Let's take a look at the true face of RSS. (As an example of RSS1.0)
-------------------------------------------------- ------------
XML Version = "1.0"?>
XMLns: rdf = " http://www.w3.org/1999/02/222rdfsyntaxns# "XMLns: DC =" http://purl.org/dc/elements/1.1/ "XMLns: SY =" http://purl.org/rss/1.0/modules/syndication/ " XMLns: admin = " http://webns.net/mvcb/ " XMLNS = " http://purl.org/rss/1.0/ ">> -------------------------------------------------- ------------ First, declare this is an XML file, and there is his namespace. In fact, this is basically the same. Next is the body of RSS. Everyone knows that XML is the same, the RSS is the same. It has 4 paragraphs: Channel, Image, Item, And Text INPUT, where Channel, Item, is required, other optional. The Channel (Channel) element contains several needs of this RSS:
-------------------------------------------------- ------------
http://www.gwzone.com limited
CHANNEL>
-------------------------------------------------- ------------
Image (image) element is an optional element. Mainly used to define the LOGO of the website. The following definition is a website logo called News Loge, which is 88 * 31-size addresses http://news.gdufs.edu.cn/images/logo.gif pictures, when you click on the image
Http://news.gdufs.edu.cn connection.
-------------------------------------------------- -----------
http://secwww.gdufs.edu.cn/gwzone/images/logo ,gif url>
http://www.gwzone.com
iMage>
-------------------------------------------------- ----------------
Item (item) element is an important part of RSS. He is a part that often changes in the RSS document. If the RSS is provided, the Item element is included in the news, including news headline, connection, brief overview, author, update time, etc.; Item contains the title, connection, introduction, time, etc. of the article.
-------------------------------------------------- -------------
http://www.mozillazine.org/talkback.html?article=607 link>
Read more About It in this Discussion ... description>
item>
-------------------------------------------------- -------------
Text INPUT is displayed as an HTML form, which can be used as a reader feedback, subscribe to the message, and search.
-------------------------------------------------- ----------------
http://news.gdufs.edu.cn/comment.asp link>
textInput>
-------------------------------------------------- ---------------
Next, don't forget to write it.
-------------------------------------------------- --------------- rdf: rdf>
-------------------------------------------------- ---------------
Haha, is a RSS document easy? You can use your favorite notepad, EditPlus, or XML Editor to write RSS documents. But every time I update has to rewrite the RSS. It will be very troublesome, no problem, you can also use Java, PHP, Perl, and ASP to dynamically generate RSS. In a RSS document, you can find that Channel, Image and Text Imprut are constant, only Item is a dynamically updated. As for how to dynamically generate RSS in programming language, it will not be described here.
How to read RSS
Say above, read RSS with RSS NewsReader (a application that converts XML documents into text and images you can read). If you type a few keywords on the RSS NewsReader on Google, you will find a lot of software. However, many RSS NewsReaders are not well supported by Chinese, and there will be garbled when reading Chinese RSS. Below I want to introduce the feeddemo reader, the interface is simple, easy to use, and multiple languages can be selected.
It is also very simple to install this software. It requires 2.27MB of hard disk space.
The official download address of the trial version is
http://www.bradsoft.com/download/
(See Figure 2)
As long as you have been pressing "Next", you can complete the installation. Welcome page will appear after installation, then choose the language used, usually Simple Chinese. Next is the instructions, read it carefully, you will quickly grasp it. The following is the interface of FeedDemo.
(See Figure 3)
According to the default installation, there are several categories such as News, Healthy, Spotrs, Entertaments, Software, including ABC News, BBC News, NewYork Times, Yahoo News, etc. Dozens of RSS channels. Increasing new channels is simple, just click "Add Channel", "New Channel" dialog box appears.
(See Figure 4)
Select "I will enter this newsfeed URL", then enter the URL to provide the RSS feed service (that is, the URL connected to the RSS or XML tag). Here I entered the RSS service of Guangliu News:
Http://secwww.gdufs.edu.cn/gwzone/news/rss.asp, and confirm the automatic discovery and verify the newsfeed options, no accident, an extensive online news RSS service will be added to FeedDemo.
Remember the channel title here? That is the Title in the Channel element in the RSS document. After choosing which channel group added to the export online news, I will tell.
Let's introduce a few better RSS newsfeed addresses:
Http://msdn.microsoft.com/rss.xml Microsoft MSDN News
Http://www.blueidea.com/tech/rss.xml Blue Ideal Technical Document Update
Http://www.blogcn.com/user_rs.asp blogcn.com All "Blog" articles update