Introduction
Some time ago Peter Bromberg wrote an article to convert an Atom feed to a RSS feed. In this code-snipp you will learn how to do the opposite - we will convert a simple RSS feed to an Atom feed.
RSS to Atom
As mentioned in the introduction, the original idea came with writing of an article by Peter Bromberg. The article can be found here. Like the code displayed in Peter's article this snipp uses the basic Xml classes for the conversion. The code is straight forward - I created a simple class, that you can use to convert the RSS feed to Atom.
Code
Usage
To convert the class simply use the ConvertRssToAtom class and you are ready to go. Here an example:
Summary
This quick code-snippet explained how you can convert an RSS feed to ATOM.
About Sonu Kapoor
 |
Sonu Kapoor is the creator of DotNetSlackers. Originally started in 2005, DotNetSlackers is a website to help developers stay up-to-date with the latest developments in .NET. During the sites’ youth DotNetSlackers focused solely on .NET news aggregation; however, over the years DotNetSlackers has gr...
This author has published 4 articles on DotNetSlackers. View other articles or the complete profile here.
|
You might also be interested in the following related blog posts
Developing RESTful services with JSON and POX support in the ASP.NET MVC
read more
Creating and Consuming Syndication Feeds in ASP.NET 3.5
read more
How to upgrade Atom 0.3 feeds on the fly with a custom XmlReader for use with WCF Syndication APIs
read more
Silverlight IValueConverter vs. TypeConverter
read more
LINQ to RSS/ATOM (Kind of)
read more
Add Dynamic link rel=alternate RSS directive to ASP.NET Page
read more
SCREENCAST: Exposing/Consuming RSS/ATOM using WCF 3.5 & Silverlight 2
read more
Upcoming Changes In Routing
read more
Announcing the release of SPRSS
read more
New Windows Live Services will be compatible with Astoria
read more
|
|
Please login to rate or to leave a comment.