My RSS feeds

| tutorials | | Comments (13) | TrackBacks (31)

I decided to post my RSS feeds (1.0, 2.0 and comments 1.0) since there's been a lot of discussion about them.

I'm using the mt-entrybodymore plugin because I was having problems getting my RSS to validate. I use mt-xmlencode-block in my comments feed.

I also use ResolveURLs to change any relative links in my posts to fully qualified links (ie, to the smileys).

Text versions of my feeds (right click and save as):
RSS 1.0 (also get this plugin) (name: index.rdf)
RSS 2.0 (also get this plugin) (name: index.xml)
Comment feed, 1.0 (also get this plugin) (name: comments.rdf)

Update: I blogged this at ScriptyGoddess too.

Update: Sam pointed out that I had my file extensions flipped, so I'm correcting them now.

RSS 1.0: (should be named "index.rdf")
<?xml version="1.0" encoding="iso-8859-1"?>

<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns="http://purl.org/rss/1.0/">

<channel rdf:about="<$MTBlogURL$>">
<title><$MTBlogName encode_xml="1"$></title>
<link><$MTBlogURL$></link>
<description><$MTBlogDescription encode_xml="1"$></description>
<dc:language>en-us</dc:language>
<dc:creator>Your Name Here</dc:creator>
<dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></MTEntries></dc:date>
<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" />
<admin:errorReportsTo rdf:resource="mailto:<MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries>"/>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<items>
<rdf:Seq>
<MTEntries lastn="10">
<rdf:li rdf:resource="<$MTEntryLink encode_xml="1"$>" />
</MTEntries>
</rdf:Seq>
</items>
</channel>

<MTEntries lastn="10">
<item rdf:about="<$MTEntryLink encode_xml="1"$>">
<title><$MTEntryTitle encode_xml="1"$></title>
<description><$MTEntryBodyMore encode_xml="1"$></description>
<content:encoded><![CDATA[<$MTEntryBodyMore $>]]></content:encoded>
<link><$MTEntryLink encode_xml="1"$></link>
<dc:subject><$MTEntryCategory encode_xml="1"$></dc:subject>
<dc:creator><$MTEntryAuthor encode_xml="1"$></dc:creator>
<dc:date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date>
</item>
</MTEntries>

</rdf:RDF>

RSS 2.0: (should be named "index.xml")
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/">

<channel>
<title><$MTBlogName remove_html="1" encode_xml="1"$></title>
<link><$MTBlogURL$></link>
<description><$MTBlogDescription remove_html="1" encode_xml="1"$></description>
<dc:language>en-us</dc:language>
<dc:creator>Your Name Here</dc:creator>
<dc:rights>Copyright <$MTDate format="%Y"></dc:rights>
<dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></MTEntries></dc:date>
<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" />
<admin:errorReportsTo rdf:resource="mailto:<MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries>"/>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>

<MTEntries lastn="10">
<item>
<title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
<link><$MTEntryLink encode_xml="1"$></link>
<description><$MTEntryBodyMore encode_xml="1"$></description>
<guid isPermaLink="false"><$MTEntryID$>@<$MTBlogURL$></guid>
<content:encoded><![CDATA[<$MTEntryBodyMore$>]]></content:encoded>
<dc:subject><$MTEntryCategory remove_html="1" encode_xml="1"$></dc:subject>
<dc:date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date>
</item>
</MTEntries>

</channel>
</rss>

Comment feed, 1.0: (should be named "comments.rdf")
<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="<$MTBlogURL$>">
<title><$MTBlogName encode_xml="1"$>: Reader Comments</title>
<link><$MTBlogURL$></link>
<description>Comments by the readers of <$MTBlogName encode_xml="1"$></description>
<language>en-us</language>
<webMaster>Your email address</webMaster>
<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" />
<items>
<rdf:Seq>
<MTComments lastn="20" sort_order="descend">
<rdf:li rdf:resource="<$MTBlogURL$>comments/<$MTCommentID$>" />
</MTComments>
</rdf:Seq>
</items>
</channel>
<MTComments lastn="20" sort_order="descend">
<item rdf:about="<$MTBlogURL$>comments/<$MTCommentID$>">
<title>Comment by <$MTCommentAuthor encode_xml="1"$> on "<MTCommentEntry><$MTEntryTitle encode_xml="1"$></MTCommentEntry>"</title>
<description>
<MTXMLEncodeBlock>
<$MTCommentBody$>
<p><i>-- Posted by <b><$MTCommentAuthorLink spam_protect="1"$></b> at <b><$MTCommentDate$></b> --</i></p>
</MTXMLEncodeBlock>
</description>
<link><$MTBlogArchiveURL$><$MTCommentEntryID pad="1"$>.php</link>
<dc:subject>Comment</dc:subject>
<dc:creator><$MTCommentAuthor encode_xml="1"$></dc:creator>
<dc:date><$MTCommentDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date>
</item>
</MTComments>
</rdf:RDF>

13 Comments

Christine said:

Ok, that is almost enough to make my eyes bleed. ;-) I'm just using the Dive Into Mark RSS 2.0 template - but I don't want the extended entries to show up. The only time I use those is in restricted posts, and I don't want to give all my secrets away!

Lisa said:

That's a good point. I only use them for posts that are long or have boring technical stuff in 'em. wink

I'll check out Mark's though.

Jennifer said:

Cool. You should post this up on scripty too (or at least a link back here)

(also - the link to me is broken. What I did to fix my multiple post problem was just to delete them and make a new post - so now people can comment on them)

Lisa said:

Jennifer: All fixed!

Melissa said:

Thanks for your help this morning girlie. I think mine are all fixed and ready to go. grin

Nancy said:

Oh wow, I am challenged. I think it will be a while before I get into this LOL
I am still figuring out how to get my sites to validate

Ruthie said:

i really need smilies like yours. care to share your knowledge with a dumb girl?

Lisa said:

I've written up tutorials for them. smile

sam said:

Hi, great post, but I've got a tiny little niggle...

Technically, RSS 1.0 should be named .rdf, and RSS 2.0 should be .xml, you have them backwards. No biggie though, and an easy change. smile

Peace,
Sam

leigh said:

Lisa, I don't know anything about this, so decided to use your great samples and tutorial to create my RSS feeds. 1.0 validates, but I can't get 2.0 to. I keep getting this error:

column 3: description should not contain relative URL references (10 occurrences) [help]

]]>
^

Yes, I downloaded, unzipped and uploaded all the recommended plugins, also. My URL is http://prismofwhispers.com/mtblog/index.xml

Thanks in advance for any help you can give me!!

tanya said:

i can't believe i ever called myself a geek. i know nothing.

(but i'm learning)

Promo said:

OK, so what am I supposed to do with my comments feed? Just publish a link to it?

Is there some reason we don't integrate the comments feed with the main XML feed?

Wouldn't it be better to have the comments with the posts?

Just wondering. Awesome tutorial, I've implemented all three feeds.

Lisa said:

Combined feed info coming this weekend. smile I'll leave up the individual feeds for those who prefer them the way they are right now. Stay tuned!

31 TrackBacks

Listed below are links to blogs that reference this entry: My RSS feeds.

TrackBack URL for this entry: http://www.beantowngeek.com/cgi-bin/mt/mt-pong.cgi/166

» Virtual SysAdmin from anything but ordinary

I'm great at getting stuff done when I need to. Correction: I'm great at getting stuff done when I need to, provided I'm motivated. Everyone is all about the RSS lately, so I tried to fix my faulty feed this... Read More

» I didn't expect a Spanish Inquisition from Solonor's Ink Well

The Spork Queen has become a newsfeed evangelist. If you don't have an XML newsfeed - or if you're not using... Read More

» Reading via RSS Feed from FallenSpirits

Thanks Guys for the information and Thanks Lisa for all the help! Read More

» RSS feeds from scriptygoddess.com

Christine has been rallying to get everyone to set up RSS feeds. She's even gotten Jennifer involved. Solonor is also Read More

Some of you may read my personal blog where I have spent days now talking about XML, RSS, and why Read More

» Comments Feed from J : Da Blog

Well, courtesy of the very cool Unix Gal, I managed to get a RSS version of my comments, if anyone... Read More

» RSS Fever! from Just a lascivious geek...

With all the talk on RSS feeds lately, I’ve decided on finally fixing my feeds up (via Lisa’s great instructions).... Read More

» RSS HOWTO from UFies.org

Via lascivious there is a good pointer to Unix Gal's RSS feeds, and good stuff on how to set up Read More

» RSS 1.0 with Full Entries from J : Da Blog

Thanks to , I now offer RSS 1.0 in full posts as well =D Later today, I'll probably install formmail.... Read More

» RSS Feeds from Thoughtprints

Thanks to Lisa, I now have a much better understanding of RSS feeds and what they're used for. And also... Read More

» get your shit together, jen. from reflections

i know, i know...i promise.. people keep asking me to fix my rss feed. i don't really know what the Read More

» syndicated from this, that & whatever

I'm doing all sorts of improvements around here today. With the help of Scriptygoddess and Lisa, I've set up RSS Read More

» I'm Valid!! from Life in the Zu

Well, at least for the moment. I followed Lisa's instructions and have fulfilled Ms. Cookie's request and I believe that my RSS feeds are now doing the proper thing. I'm not sure, though, because I don't actually understand the plugins. But just let m... Read More

» Partial Feeds - NOT optional, please! from Jitterin' Thoughts

     I learned my lesson, or rather, I finally figured this one out: RSS feeds that are only partials of your... Read More

» For the Power Users.... from Yay! Blog!

Okay... for all you power users of RSS, I've set up full text XML feeds for all three of my blogs. Thanks to Christine and Lisa the Unix Gal. Dang... I'm getting so nerdy. If you come here for less... Read More

» For the Power Users.... from Yay! Blog!

Okay... for all you power users of RSS, I've set up full text XML feeds for all three of my blogs. Thanks to Christine and Lisa the Unix Gal. Dang... I'm getting so nerdy. If you come here for less... Read More

» Blog Stuff from Random Ramblings

Woo! Thanks to Lisa I now have a fully-validating totally amazing new and improved RSS 2.0 and RSS 1.0 feed. Furthermore, it now gives out the whole of the post instead of just the "entry body" (although I rarely use the extended entry anyway), and als... Read More

» rss feeds again? from redsugar muse

i finally followed lisa the unix gal's rss feed instructions, and upgraded. now how do i tell if it worked? the .xml and .rdf look ok. is it newzcrawler.com to read, hopefully, this entry?... Read More

» New and Improved RSS Feed from Ramblings of a Code Monkey

Well, that was a lot of work. But it was definitely worth it in the end. While surfing some blogs tonight, I saw a lot of random talk about RSS and news aggregators in general, and how cool they were.... Read More

» rss feed: part 2. from chewbecca.com: journal

i still have no idea what i'm doing, but everything seems to be validating okay. i now have an rss... Read More

» RSS update & gratitude from life of nicole lee

I updated my index.xml to RSS 2.0 in order to fit in with Lisa's RSS feed template (mega kudos to... Read More

» PSA from The Short Strange Trip

OK, here's the deal with RSS, that little link that says "Syndicate this site" and then you click it and Read More

» RSS and XML from Amish Tech Support

Apparently, just as I've crusaded for people to ping weblogs.com to let folks who blogroll or blo.gs-roll them when updates hit their site, some people have been crusading for RSS/XML feeds of sites with extended entries to allow for rapid... Read More

» Simple 'Nuff (RSS Full Posts) from Nonliteral

For those who, like myself, prefer reading in an aggregator, rather than enjoying my oh-so-decorative html, there are now full post versions of my RSS 1.0 and RSS 2.0 feeds available. Links to them will go up on the page... Read More

» RSS feeds and their care from charleshartman.org

This bit from plasticbag.org inspired me to update my RSS 1.0 feed and add a RSS 2.0 feed, both with full entries… I had been meaning to change them for some time, but I kept putting it off because my... Read More

» Syndicate Neversmile from NEVERSMILE

I checked around for some templates for feeds and gave them a try. You can see the results on the left. I got most of my Information on these feeds from Lisa's post here and here, from Mark's, and Brad's... Read More

» Bloggie's Scripty Scripts from Bloggie Broad

Someone asked me which scripts I used to make all the cool things magically appear here on BB. I found nearly everything at Scriptygoddess --... Read More

» Reverb: Bloggie Scripty Fun from Bloggie Broad

I'm organizing BB and deleted the posts revolving around my techie mess from earlier in the week, since it was an easy fix. I like... Read More

» RSS ans Syndication from Broadband and Me

John Moore has requested that I add or rather extend my syndication options, which I now have! The following options are available: RSS 0.91 (XML) - RSS 0.91 extracts RSS 1.0 (XML) RSS 1.0 Extracts RSS 2.0(XML) RSS 2.0 Full... Read More

» Reverb: Bloggie Scripty Fun from Bloggie Broad

I'm organizing BB and deleted the posts revolving around my techie mess from earlier in the week, since it was an easy fix. I like... Read More

» More New Features from Bloggie Broad

I'm addicted to scripts this week -- it's a great... Read More

About this Entry

This page contains a single entry by Lisa published on March 15, 2003 10:49 PM.

Calling all people who use RSS readers was the previous entry in this blog.

"Girl in Hyacinth Blue" is the next entry in this blog.

Find recent content on the main index.

Me!

The easiest way to find something lost around the house is to buy a replacement.

About me... :: memes :: My Amazon wishlist :: My LJ :: My Twitter :: My Flickr :: Photos of me

Blog reading list

Contacts
· AIM, Yahoo!, MSN, Google Talk, LJ Talk... just ask
· Email me

Good Causes

       
Love is love.
Support gay marriage.

platinum.gif
East siiiiiiiiiiiiiiiiiiiide, baby!
Click to help
sponsor mammograms
Listen to good music! Radio Paradise

Silly Stuff

blogchalk:
Lisa/Female/41-45. Lives in United States/Mass/Boston and speaks
English. Spends 80% of daytime online. Uses a Faster (1M+) connection.
The
WeatherPixie
The weather in Boston

Flickr

www.flickr.com
jasra's photos More of jasra's photos
Powered by Movable Type 4.1

Copyright

Copyright © 2001-7 Lisa K Holsberg. Unauthorized use is prohibited.