现在的位置: 首页 > 综合 > 正文

Rss 0.93 文档格式

2011年12月15日 ⁄ 综合 ⁄ 共 8058字 ⁄ 字号 评论关闭
<?xml version="1.0"?>
<rss version="0.93">
    
<channel>
        
<!--Required Elements Of <channel> Begin-->
        
<title>
            
<!--The name of the channel.-->
            
<!--It's how people refer to your service.-->
            
<!--If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.-->
        
</title>
        
<link>
            
<!--A URL pointing to the website named in the <title>.-->
        
</link>
        
<description>
            
<!--A phrase that describes your channel, your channel's positioning statement.-->
        
</description>
        
<image>
            
<!--Required Elements Of <image> Begin-->
            
<url>
                
<!--is the URL of a GIF, JPEG or PNG image that represents the channel.-->
            
</url>
            
<title>
                
<!--describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.-->
            
</title>
            
<link>
                
<!--is the URL of the site, when the channel is rendered, the image is a link to the site.-->
                
<!--(Note, in practice the image <title> and <link> should have the same value as the channel's <title> and <link>.-->
            
</link>
            
<!--Required Elements Of <image> End-->
            
<!--Optional Elements Of <image> Begin-->
            
<width>
                
<!--Maximum value for width is 144, default value is 88.-->
            
</width>
            
<height>
                
<!--Maximum value for height is 400, default value is 31.-->
            
</height>
            
<!--Optional Elements Of <image> End-->
        
</image>
        
<!--Required Elements Of <channel> End-->
        
<!--Optional Elements Of <channel> Begin-->
        
<language>
            
<!--Indicates the language your channel is written in.-->
            
<!--This allows aggregators to group all Italian language sites, for example, on a single page.-->
        
</language>
        
<copyright>
            
<!--Copyright notice for content in the channel.-->
        
</copyright>
        
<managingEditor>
            
<!--The email address of the managing editor of the channel, the person to contact for editorial inquiries.-->
            
<!--The suggested format for email addresses in RSS elements is bull@mancuso.com (Bull Mancuso).-->
        
</managingEditor>
        
<webMaster>
            
<!--The email address of the webmaster for the channel, the person to contact if there are technical problems.-->
        
</webMaster>
        
<rating>
            
<!--The PICS rating for the channel.-->
        
</rating>
        
<pubDate>
            
<!--The publication date for the content in the channel.-->
            
<!--For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours.-->
            
<!--That's when the pubDate of the channel changes.-->
            
<!--All date-times in RSS conform to the Date and Time Specification of RFC 822.-->
        
</pubDate>
        
<lastBuildDate>
            
<!--The date-time the last time the content of the channel changed.-->
        
</lastBuildDate>
        
<docs>
            
<!--A URL, points to the documentation for the format used in the RSS file.-->
            
<!--It's probably a pointer to this page.-->
            
<!--It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is.-->
        
</docs>
        
<textInput>
            
<title>
                
<!--The label of the Submit button in the text input area.-->
            
</title>
            
<description>
                
<!--Explains the text input area.-->
            
</description>
            
<name>
                
<!--The name of the text object in the text input area.-->
            
</name>
            
<link>
                
<!--The URL of the CGI script that processes text input requests.-->
            
</link>
        
</textInput>
        
<skipDays>
            
<!--An XML element that contains up to seven <day> sub-elements whose value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday.-->
            
<!--Aggregators may not read the channel during hours listed in the skipDays element.-->
            
<!--(Most aggregators seem to ignore this element.)-->
        
</skipDays>
        
<skipHours>
            
<!--An XML element that contains up to 24 <hour> sub-elements whose value is a number between 1 and 24, representing a time in GMT, when aggregators, if they support the feature, may not read the channel on days listed in the skipHours element.-->
            
<!--(Most aggregators seem to ignore this element.)-->
        
</skipHours>
        
<cloud>
            
<!--It specifies a Web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1.-->
            
<!--Its purpose is to allow processes to register with a cloud to be notified of updates to the channel.-->
            
<!--<cloud domain="data.ourfavoritesongs.com" port="80" path="/RPC2" registerProcedure="ourFavoriteSongs.rssPleaseNotify" protocol="xml-rpc"/>-->
        
</cloud>
        
<!--Optional Elements Of <channel> End-->
        
<item>
            
<!--A channel may contain any number of <item>s, each of which links to a story-->
            
<!--Optional Elements Of <item> Begin-->
            
<title>
                
<!--is the title of the story.-->
            
</title>
            
<link>
                
<!--is the URL of the story.-->
            
</link>
            
<description>
                
<!--is the story synopsis.-->
            
</description>
            
<source url="Required links to the XMLization of the source.">
                
<!--is a new optional sub-element of <item>.-->
                
<!--Its value is the name of the RSS channel that the item came from, derived from its <title>.-->
                
<!--It has one required attribute, url, which links to the XMLization of the source.-->
                
<!--<source url="http://www.myapplemenu.com/cgi-bin/surfView.cgi?category=applesurf&mainfull=1000&fmt=scripting&template=scripting">AppleSurf</source>-->
                
<!--The purpose of this element is to propogate credit for links, to publicize the sources of news items.-->
            
</source>
            
<enclosure url="Required, where the enclosure is located" length="Required, how big it is in bytes" type="Required, what its type is, a standard MIME type">
                
<!--The 0.93 spec allows multiple <enclosures> per <item>. 0.92 allowed only a single enclosure.-->
                
<!--It has three required attributes.-->
                
<!--url says where the enclosure is located, length says how big it is in bytes, and type says what its type is, a standard MIME type.-->
                
<!--The url must be an http url.-->
                
<!--<enclosure url="http://www.scripting.com/mp3s/weatherReportSuite.mp3" length="12216320" type="audio/mpeg" />-->
            
</enclosure>
            
<category domain="Optional, identifies a categorization taxonomy">
                
<!--It has one optional attribute, domain, a string that identifies a categorization taxonomy.-->
                
<!--The value of the element is a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy.-->
                
<!--Processors may establish conventions for the interpretation of categories.-->
                
<!--Two examples are provided below:-->
                
<!--<category domain="http://www.superopendirectory.com/">standards/xsl/implementations</category>-->
                
<!--<category domain="http://www.fool.com/cusips">MSFT</category>-->
            
</category>
            
<pubDate>
                
<!--Its value is a date, indicating when the item will become available.-->
            
</pubDate>
            
<expirationDate>
                
<!--Its value is a date, indicating when the item is no longer available.-->
            
</expirationDate>
            
<!--Optional Elements Of <item> End-->
        
</item>
    
</channel>
</rss>
【上篇】
【下篇】

抱歉!评论已关闭.