RSS 2.0 specification

xiaoxiao2021-03-06  63

RSS 2.0 specification

RSS is an abbreviation for Really Simple Syndication (for RSS2.0, it is the abbreviation of these three words. It is the abbreviation of RDF Site Summary, 1.0 and 2.0 is two systems) RSS based on XML All RSS must follow the XML 1.0 specification published on the W3C website. In an RSS document, the root element is with a must-have Version to indicate the RSS specification followed by the document. If the RSS document follows this specification, the version of the version must be 2.0. The element has only one child element that contains some information about the channel. Channel (CHANNEL) is a whole blog, item (ITEM) refers to an article or log (also known as this is POST).

RSS2.0 Element Channel List of Child Elements

Element Description (Descripting) Value Domain Importance Example (Example) Title Channel Name Essential GoupState.com News HeadlinesLink channel URL must-have http://www.goupState.com/description channel Description of the Latest News from GoUpstate.com, a Spartanburg Herald-Journal Web site.language article used language channels available or netscape w3c list of recommended optional en-uscopyright optional channel content copyright copyright 2002, Spartanburg Herald-JournalmanagingEditor editor of email may Selecting geo@herald.com WebMaster responsible for channel technical transactions website administrator Email Optional Betty@herald.com (betty Guernse) Pubdate Channel content issuance date, format Follow RFC822 format (2 or 4 digits) Optional SAT, 07 Sep 2002 00:00:01 GMTLASTBUILDDATE Channel Content Last Modified Date Optional SAT, 07 Sep 2002 09:42:31 Gmtcategory Specifies one or several categories of the channel to which the channel belongs can be selected newspapers Generator Generates the program name of the channel Optional Mightyinhouse Content System V2.3DOCS pointing to the URL of the RSS file in the format description of the URL optional http://blogs.law.harvard.edu/tech/rsscloudAllows 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 t TL validity period, to indicate that the channel can be cached for the longest time minute to specify 60 Image Specify a GIF or JPEG or PNG image to display optional Rating with the channel. Hierarchical (mainly referring to adults, restrictions, children, etc.) Optional TextInput specifies a Text input box for user input, specific information and functions are undecided. Optional Skiphours prompt news aggregat, those hour time it can skip. Optional SkipDays prompt news aggregat, those days it can skip. Optional RSS2.0 Element CHANNEL illegal list of child elements

Description (ELEMENT) Description Value Domain Importance Example (EXAMPLE) URL Picture of URL Essential Title Image Title, the URL of the Alt Attribute for HTTP (actually often replaced by channel URL) Width picture The width (pixel unit) Maximum 144, the default 88 Optional Height picture is high (pixel unit) maximum 400, the default 31 optional Description with the Title property for LINK optional

List of child elements of rss2.0 elements CHANNEL CLOUD

Element Description Value Domain Importance Example (Example) DomainCloud Program The Domain Name of the DomainCloud Project Radio.XMLSTORAGESYSTEM.COMPORT Access the port 80Path program passing the port 80Path program (not necessarily a real path) / RPC2REGisterProcedure Registered service or process XMLSTORAGESYSTEM.RSSPLEASENOTIFYPROTOCOL protocol XML-RPC, SOAP, HTTP-POST 1 XML-RPCRS2.0 element CHANNEL's child element textInput child elements list

Description (Description) Value Domain Importance Example (Example) Titlesubmit button label must-have Description explanation Text Enter the NameText Area object name must have a list of LINK procedures Submitted CGI program necessary

For Item's content, please read the XML-RPC-based bloggerapi learning. Description: RSS2.0 requires and The value of the value of the value of , must be registered in IANA, such as http: // or https : // or ftp: // et al. In an RSS file, you can include an element that is defined here, as long as it is defined in a certain namespace. A common problem is

versus

The difference between the two is the same in some cases, but the former can refer to a certain location in a few long texts (the so-called pages anchor).

转载请注明原文地址:https://www.9cbs.com/read-120348.html

New Post(0)