by andrew
26. May 2009 19:30
Read this article in your language IT | EN | DE | ES
Everybody who has an account wtih neflix has access to some Personalized RSS feeds. They are available here, once you have logged in.
I wanted to consume these feeds, and show what movies I'm watching so I went looking for an ASP.NET control which could do this but didn't find any. I could have just used RSSDataSource for this, but I decided to write my own control to follow the DotNetBlogEngine convention of creating custom controls. I used SyndicationFeed class to load the XML from the WebResponse (as opposed to parsing the raw XML), then I just iterate over each of the SyndicationItem -- nothing fancy. Althought I will consider turning this into a templated control, and parsing out the arbitrary HTML that appears in the Description field of each item at some point, if that is helpful to anyone.
I also discovered a helpful addon called FeedProxy, which works around Firefox's feed preview. You use FeedProxy as your Application Action for Web Feeds, and you get the actual XML in our browser window.
You can see the result below my Twitter updates. The current code for this control is here.
Exception: Stack empty.