Rss2.0 requires that the very beginning of the & lt; link & gt; and & lt; url & gt; values must be registered in iana, such as http: // or https: // or ftp: //
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 To indicate the rss specification that the document complies with. if the rss document complies with this specification, the version value must be 2.0.
The element has only one child element, 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 |
Newspapers |
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 |
|
Ttl |
Validity period, used to specify the maximum time that the channel can be cached |
In minutes |
Optional |
60 |
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
Java programming tips related to "rss 2.0 specifications: Strong> Locale. SubLanguages. GERMAN
Specify the German language. Syntax Public static final int GERMAN; |
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 more information about item, see xml-rpc-based bloggerapi learning.
Note:
Rss2.0 requirements And The very beginning of the value 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 the difference between the two. in some cases, the two are the same, but the former can refer to a certain position in a certain long text (that is, the so-called intra-page anchor ).