Seshan Ravikumar

aka. Seshpenguin


← Back

title: We got an Atom/RSS feed! Who asked for this again? author: Seshan Ravikumar type: post date: 2018-12-10T21:20:33+00:00 url: /2018/12/10/we-got-an-atom-rss-feed-who-asked-for-this-again/ categories:


May 2019 Update: This blog post was on my old, custom blog system. Now that I got bored of it, we have a new blog systems.
Just keep in mind that this post no longer reflects how the blog works nowadays.

In the ever lasting quest of adding more random stuff to this website for our own entertainment, ladies and gentlemen I present to you the Atom feed for the blog!!!
Ok so first thing I had to do was actually look up the Atom spec… I spent maybe 5 minutes staring at the RFC then just copied the example and went from there. Just FYI, there is no way this thing is standard compliant. It’s a miracle is this feed is useful to anyone lol.

The actual implementation wasn’t that hard at all. First thing was in IIS 6 I had to associate the .xml extension with the asp.dll executable so IIS would run the embedded VBScript.

The code itself was pretty much copied from the main blog code (that is, load each blog and it’s title from numbered files on the drive), I just had to change it so it would generate “valid” XML instead of HTML. It’s mostly pretty sane, except my way of handling the HTML markup that’s included in posts…

Yep… It’s good enough so none of the HTML breaks the XML, but do expect some littering of leftover markup in the feed summaries. Obviously not perfect, but did you really expect reasonable things here?? Thought so! xD

More importantly, here is a link to the Atom feed. Go nuts!