Published: 17 Sep 2006
By: Sonu Kapoor
Download Sample Code

In this code-snippet I will show how you can convert a RSS feed to Atom.

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.

Continue reading and see our next or previous articles Next Article >>

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.

Other articles in this category


Reporting XML data using Crystal Reports and Windows Forms
This article will show you how to report on XML data with Crystal Reports and Windows Forms client.
Dynamic XML from SQL Server
"Efficiency in simplicity", that's what XML is all about. XML is great for information exchange beca...
XML Encryption
XML Encryption is a W3C standard for encrypting XML elements. The encryption process involves taking...
Easy XML to SQL Using Linq
Richard J. Dudley shows how to transform XML to SQL using Linq.

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
Top
 
 
 

Please login to rate or to leave a comment.

Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.