have a different value for the version attribute. In practice this works, despite the different and theoretically illegal values in the version attribute in RSS 0.91 and 0.92 documents, because many aggregators ignore the value in the version attribute. If you are writing an RSS 2.0 document, the start tag of the rss element should be written as follows: You can also write it using single quote marks: The rss element has a single child element, the channel element. All content of the information feed document is contained in the channel element. Notice that there is no namespace declaration on the preceding rss start tag. For consistency with RSS 0.91 and 0.92, the elements of RSS 2.0 are in no namespace. This has the advantage of backwards compatibility but does mean there is a risk of naming collisions. In practice, the risk of naming collisions is slight because most non-RSS 2.0 elements likely to be found in an RSS 2.0 document are in a namespace, which allows the aggregator or other user agent to distinguish those elements from RSS 2.0 elements. The channel Element The channel element is the only permitted child element of the rss element. The channel element has no attributes. The remainder of an RSS 2.0 document consists of child elements or descendant elements of the channel element. The following child elements of the channel element are required in all RSS 2.0 documents. . title: Contains the name that refers to the information feed. If the information feed refers back to a Web site or blog, the value of the title element is typically the name of that site or blog. . link: Contains a URL that allows linking to the Web site or blog that s associated with the information feed. . description: Contains a brief description of the information feed. A minimalist RSS 2.0 document would therefore look like the following document:
http://www.tfosorcim.org/blog/ The Reflecting on Microsoft blog discusses issues relating to specific Microsoft products as well as the much larger issue of the competition between the proprietary and open-source approaches to software development. 123 RSS 2.0: Really Simple Syndication
This entry was posted
on Thursday, June 28th, 2007 at 2:18 am and is filed under j2ee.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.