Recently, I was on a project which required creating an RSS 2.0 feed using Java, which essentially amounted to mapping our data entities to the appropriate fields in the RSS xml spec. More generally, I want to be able to somehow turn any List of Stuff into an RSS feed easily.
Lo and behold, in VS2008, WCF has a 'Syndication Service Library' project type, which has entities already created for feeds (and can do RSS 2.0 or ATOM with no problem).
I decided to create a 'ISyndicatable' interface to tack on to any data entities I might want to make feeds out of, then translate my ISyndicatable entities to SyndicationItem objects when the feed is requested.
What do you think of this design, what do you do for creating feeds generically?