Creating RSS files
You can build RSS files to either the proposed RSS 1.0 specification, or to the currently more popular RSS 0.91 spec. For production applications, use RSS 0.91, because the 1.0 proposal is still under consideration. The Resources section, at bottom, includes links to both the 1.0 and 0.91 specs. which provide a detailed review of all elements. This discussion focuses on the most commonly used elements, and all the examples in this article are in 0.91 format.
The 1.0 proposal differs from the 0.91 format in one main way: It incorporates Resource Description Framework (RDF) elements that allow greater flexibility at the expense of some increased complexity. This proposed specification is more extensible, creating a W3C standard for RSS files that will meet current needs, will be as backwards-compatible as possible, and will be adaptable to future requirements.
Both versions of the specification share the characteristic of being a lightweight format that developers can use for many purposes.
RSS is an XML application. Because of this, all RSS documents begin with the XML 1.0 declaration followed by the RSS document type declaration, as shown in Listing 2.
The first line declares the document to be an XML document. The second
line, the DTD declaration, specifies that this XML file is based on the
RSS 0.91 document type definition, DTD, at Netscape. Finally, the root
element marks the beginning of the RSS file content, all of which goes
<rss version "0.91"> tag and the