An RSS feed is an XML document and as such must conform with XML syntax (see page 38). Over the next few pages, I'll show you how to write the whole thing with just a text editor. While you can create syndication feeds in several formats, RSS 2.0 is perhaps the most widespread and the most versatile. It's what we'll use in this chapter.
Figure 25.4. An RSS feed is an XML document. This means it must start with an XML declaration and then the <rss> root element. The syntax is persnickety but not particularly complex.
To start an RSS feed: