SoFunction
Updated on 2025-04-13

Blog summary and RSS technology

This article is excerpted from "Dreamweaver8+ASP Dynamic Website Development From Basics to Practice"

A summary of a log is an essential symbolic technology for a blog system, its main RSS technology. RSS is the abbreviation of Rich Site Summary in English, which is an XML format used to share log titles and content.

When different "blog systems" use RSS in a unified format, it is convenient for public reading. RSS can quickly view the required reading content through the title or part of the browsing log, gaining time and improving efficiency for viewers to obtain useful information. At the same time, RSS can also be "aggregated" to obtain and reorganize information from "Bloggler" RSS, so what a rich reading resource this will be. Therefore, for the "blog system", RSS technology is indispensable, which is also one of the functional points that different from other Web application systems.

RSS technical specifications

First of all, RSS is a type of XML data format. Compared with general XML, RSS specifies the use of elements and structures. In addition, the current specification is RSS2.0, which has the following provisions:

1. The root element in the RSS document is "<rss>", and it also has the property version to represent the rule version followed by RSS. At the same time, RSS must be closed with "</rss>" given the XML data format:
<rss version="2.0">
</rss> 
2. The <rss> element has only one child element, that is, the channel <channel>:
<rss version="2.0">
    <channel>
    </channel>
</rss> 
3. The child elements of the <channel> element can have <title> represent the name of the channel, <link> represents the address of the channel, <description> represents the description of the channel, <language> represents the language used in the channel article, etc., <generator> represents the program name that generates the channel...:
<channel>
<title>Cool Blog My Blog</title>
    <link>http:///dwblog</link>
<description>This is the blog log system I developed using Dreamweaver 8</description>
    <language>zh-cn</language>
    <generator>Dreamweaver 8</generator>
</channel>
4. The most important thing for RSS is the element <item> of the article (log), which is used to represent the specific information of a certain article (log). It can have child elements <title> represent the title of the article (log), <link> represents the link address of the article (log), <category> represents the category of the article (log), <description> represents the content description of the article (log), and <pubDate> represents the publishing time of the article (log):
<item>
<title>This is the title of a certain log</title>
    <link>/?b_id=1</link>
<category>Front Office Technology</category>
<description>Content of this log</description>
    <pubDate>2006-05-01 16:40:53</pubDate>
</item> 
So a complete RSS document specification format is as follows:
<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title>Cool Blog My Blog</title>
    <link></link>
<description>This is the blog log system I developed using Dreamweaver 8</description>
    <language>zh-cn</language>
    <generator>Dreamweaver 8</generator>

<item>
<title>This is the title of a certain log</title>
        <link>/?b_id=1</link>
<category>Front Office Technology</category>
<description>Content of this log</description>
        <pubDate>2006-05-01 16:40:53</pubDate>
</item>
</channel>
</rss> 
Among such format content, the most important thing for the blog system is the definition of <item> elements. A log applies one <item>. If the server-side "repeat area" technology is used, the most recent log in the database can be dynamically extracted and obtained as RSS content and displayed in multiple <item>s.

Other RSS content links:

All-round contact with RSS
/blog/?cat_id=34&log_id=948 

Excerpt from RSS2.0 technical specifications
/blog/?cat_id=34&log_id=949