Awareness and use of rss+asp.net

Source: Internet
Author: User

RSS is the most useful in recent years a very good technology, many sites have done this work, small farmers recently also for the sake of users, 2.0, to do some promotional work RSS. The following start text:

------------------------

One: About RSS

What is Q:rss?

A:rss is an easy way to share content online (also known as aggregation content, really simple syndication, usually in the time-sensitive content of the use of RSS feeds more quickly to obtain information, the site provides RSS output, enabling users to get the latest updates on the content of the site is actually a simple XML file protocol that can serve users across a platform.

Q: Why do you want to RSS?

A: In this network of knowledge flourishing years, everyone wants to quickly know their own care knowledge, such as I care about X station x a column, I can subscribe to this section of RSS, if there are articles released, I will be able to see updates in time ... I will not go into the business of the middle.

Ok. Get to know RSS.

----------------------

Second: RSS file structure

----------------------

The following is an example of RSS2.0 to illustrate that the core of an RSS file is an XML file, so you must first conform to the XML Schema format.

It is to

<rss version= "2.0" >...</rss>

This form of root format.

RSS has a <channel> child node, which contains the contents of the file, in <channel>, there are several elements to describe the information. There are detailed content on the site Http://backend.userland.com/rss, For example, the following:

Title: Headlines, often with sources of information

URL address of the Link:web site

Description: A simple description of the site.

Each piece of information is represented by a <item> element, it is included in the <channel> node, each <channel> can have multiple <item>, and each <item> node is the true node information:

Title: Titles of list items

Link: The Weburl address of the list item,

Description: A brief description of the list item,

Author: author of list information

pubdate: Release time.

I'll put an example here (information is for reference only):

<rss version="2.0">
<channel>
<title>编程入门网</title>
<link>http://www.bianceng.cn</link>
<description>编程入门网</description>
<item>
<title>有话说</title>
<link>http://www.bianceng.cn</link>
<pubDate>Sun, 14 Dec 2006 21:00:00 GMT</pubDate>
</item>
</channel>
</rss>

Here, one of the most important nodes is the pubdate format, which must conform to the RFC822 criteria and see the details. Starts with a three-letter-length week, then the number of days in the month, then the 3-letter month, then the year, then the specific time, and then the time zone.

For more information, please check the information and I'll give you a brief introduction.

----------------------

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.