// Copyright � 2005 by Omar Al Zabir. All rights are reserved.
// If you like this code then feel free to go ahead and use it.
// The only thing I ask is that you don't remove or alter my copyright notice.
// Your use of this software is entirely at your own risk. I make no claims or
// warrantees about the reliability or fitness of this code for any particular purpose.
// If you make changes or additions to this code please mark your code as being yours.
// website http://www.oazabir.com, email OmarAlZabir@gmail.com, msn firstname.lastname@example.org
/// Transforms Atom Ferd to Rss Feed
public class AtomToRssConverter
private static ExsltTransform _transformer;
public static void Transform( Stream atomStream, Stream rssStream )
if( null == _transformer )
_transformer = new ExsltTransform();
_transformer.SupportedFunctions = ExsltFunctionNamespace.All;
_transformer.MultiOutput = false;
XPathDocument doc = new XPathDocument( atomStream );
XPathNavigator nav = doc.CreateNavigator();
XmlTextWriter writer = new XmlTextWriter( rssStream, System.Text.Encoding.UTF8 );
_transformer.Transform( nav, null, writer );
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)