CSS, Content-Type For RSS

XML Icon

 14 Dec 2003 | Programming

I have updated my RSS feed to use the W3C's CSS file for RSS (which you can see in action at W3C News Syndication).

I have also fixed a minor problem I was having. Internet Explorer would not display my RSS feed. It was because I had not set a MIME type. A quick bit of Response.ContentType = "text/xml" later an voila a browser-readable RSS feed. I wanted to use application/rss+xml as previously recommended at Dive Into Mark (now using Atom) and seen until recently in my <link> tag but this causes browsers to pop up a download box rather than render the XML. Because of this I have also updated my link tag that refers to my RSS feed to <link rel="alternate" type="text/xml" title="RSS" href="/rss.asp" />.

You can view the ASP source to my feed.

Comments

No comments yet

Add a Comment

All fields are optional (except comment!). Email addresses will never be used for spam and will not be displayed on the site. IP is logged.

Your name:  (optional)
Your email:  (optional)
Your comment:
No HTML. Put spaces around URLs. Use absolute URLs with protocol (for example, /news/).

Mail me when someone replies to this thread (How do I unsubscribe?)

View Page Source