RSS Feeds

Follow the RSS 2.0 specification which includes examples.

The following is an example for publishing a podcast RSS feed:

<?xml version="1.0"?>
<rss version="2.0">
   <channel>
    <title>Podcast</title>
    <link>https://www.example.com/</link>
    <description>Example podcast</description>
    <language>en-gb</language>
    <managingEditor>support@example.com</managingEditor>
    <webMaster>webmaster@example.com</webMaster>
    <pubDate>Sat, 1 Feb 2020 21:50:30 GMT</pubDate>
    <lastBuildDate>Sat, 1 Feb 2020 21:50:35 GMT</lastBuildDate>
    <category>How To</category>
    <generator>Emacs Editor 26.3</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <image>
    <url>https://www.example.com/podcast.jpg</url>
    <title>Podcast</title>
    <link>https://www.example.com/</link>
    </image>
    <item>
     <title>Episode 01</title><!-- Exactly the same as the title in the podcasts embedded tag -->
     <link>https://www.example.com/podcast.m4a</link>
     <description>Example podcast</description>
     <pubDate>Sat, 1 Feb 2020 22:18:21 GMT</pubDate>
     <guid>https://www.example.com/podcast.m4a</guid>
     <enclosure url="https://www.example.com/podcast.m4a" length="12345" type="audio/mpeg" />
    </item>
   </channel>
</rss>

See Apple’s Podcasts Connect documentation for additional information. The documentation also lists Apple Podcast categories in the ‘More resources > Apple Podcasts categories’ section.

– Frank Dean - 1 Feb 2020

Related Topics: EmacsTips, XmlTips