Starting an RSS Feed

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:

1.
Open a new text document with any text editor.
2.
At the top, begin the XML declaration ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.