RSS 2.0 specifications

Source: Internet
Author: User

RSS is the abbreviation of Really Simple Syndication (for rss2.0, It is the abbreviation of these three words, for rss1.0, It is the abbreviation of RDF Site Summary, and 1.0 and 2.0 follow two systems)
RSS is based on XML. All RSS must comply with XML 1.0 standards published on the W3C website.
In an RSS document, the root element is <RSS> and has a required attribute version to indicate the RSS standards that this document complies with. If the RSS document complies with this standard, the version value must be 2.0.
<RSS> An element has only one subelement, containing information about the channel. A channel is a whole blog, and an item refers to an article or log (also called post ).

 

List of child elements of the rss2.0 element Channel

Element) Description) Value Range Importance Example)
Title Channel name   Required Goupstate.com news headlines
Link Channel URL   Required Http://www.goupstate.com/
Description Channel description   Required The latest news from goupstate.com, A Spartanburg Herald-Journal web site.
         
Language Language used for Channel articles, List of available Netscape or W3C recommendations Optional En-US
Copyright Channel content Copyright   Optional Copyright 2002, Spartanburg Herald-Journal
Managingeditor Email of responsible editor   Optional Geo@herald.com (George matesky)
Webmaster Email of the website administrator responsible for Channel Technical Affairs   Optional Betty@herald.com (Betty Guernsey)
Pubdate The date when the channel content is published. The format follows the rfc822 format (the year can be two or four digits)   Optional Sat, 07 Sep 2002 00:00:01 GMT
Lastbuilddate Last modification date of channel content   Optional Sat, 07 Sep 2002 09:42:31 GMT
Category One or more category of the specified channel   Optional <Category> newspapers </Category>
Generator Program name for this channel   Optional Mightyinhouse content system v2.3
Docs URL that points to the format description of the RSS File   Optional Http://blogs.law.harvard.edu/tech/rss
Cloud Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds. More info here.   Optional <Cloud domain = "rpc.sys.com" Port = "80" Path = "/rpc2" registerprocedure = "pingme" protocol = "Soap"/>
TTL Validity Period, used to specify the maximum time that the channel can be cached In minutes Optional <TTL> 60 </TTL>
Image Specifies a GIF, JPEG, or PNG image to be displayed along with the channel.   Optional  
Rating Classification of this channel (mainly for adults, restrictions, and children)   Optional  
Textinput Specify a text input box for user input. The specific information and functions are not fixed.   Optional  
Skiphours Prompt the news aggregator, which can be skipped in those hours.   Optional  
Skipdays Prompt the news aggregator, which can be skipped in those days.   Optional  

 

 

List of child elements of the image sub-element in the channel of rss2.0

Element) Description) Value Range Importance Example)
URL Image URL   Required  
Title The title of the image, used for the HTTP alt attribute   Required  
Link Website URL (in reality, it is often replaced by the channel URL)   Required  
Width Image Width (in pixels) The maximum value is 144. The default value is 88. Optional  
Height Image Height (in pixels) Up to 400, 31 by default Optional  
Description The title attribute used for link.   Optional  

List of child elements of cloud in element channel of rss2.0

Element) Description) Value Range Importance Example)
Domain Domain name or IP address of the machine where the cloud program is located     Radio.xmlstoragesystem.com
Port Port used to access the Clound Program     80
Path Path of the Program (not necessarily the actual path)     /Rpc2
Registerprocedure Services or processes that can be registered     Xmlstoragesystem. rsspleasenotify
Protocol Protocol XML-RPC, soap, or http-post   XML-RPC

List of child elements of the channel sub-element textinput in rss2.0

Element) Description) Value Range Importance Example)
Title Label of the submit button   Required  
Description Description text input area   Required  
Name Name of the text area object   Required  
Link CGI program that processes submitted requests   Required  

 

For the item content, see the bloggerapi Learning Based on XML-RPC.
Note:
Rss2.0 requires that the very beginning of the <link> and <URL> values must be registered in iana, such as http: // or https: // or FTP:.
An RSS file can contain elements that are not defined here, as long as they have been defined in a namespace.
A common problem is And

In some cases, the two are the same, but the former can refer to a certain position in a long article (that is, the so-called intra-page anchor ).

 

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.