Sometimes you need to create a custom RSS feed for your site, and the product you’re using (MOSS, Umbraco, a custom development,…) does not provide what you exactly need. So you start thinking about building your own feed.
The first attempt is to build the XML yourself, but you’ll find that it can be a little tricky, but think a while… since the RSS is an XML file you might create a XSD file so you can generate a class by using Visual Studio’s XSD.exe utility and then fill the class with your data letting the serialization part to the generated class.
Well, there is a very interesting (and working) sample in CodePlex: RSS 2.0 Schema
It has a Visual Studio project with a working sample of the generated class and an example that shows how to use it. I tested it with VS2010 and works like a charm!
Hope it helps!