Creating and consuming Rss/Atom syndication feed using WCF 3.5
The .NET Framework did not provide any built-in functionality for creating or consuming syndication feeds until version 3.5 with the introduction of the
System.ServiceModel.Syndicationnamespace. The most germane class in this namespace is SyndicationFeed. As you can probably guess from its name, this class represents a syndication feed. It has properties likeTitle,Description,Links, andCopyright, which provide details about the feed. The content items that make up the feed are specified via theItemsproperty, which is a collection of SyndicationItem objects. TheSyndicationFeedclass also has a staticLoadmethod that parses and loads the information from a specified RSS 2.0 or Atom 1.0 syndication feed.In addition to the
SyndicationFeedandSyndicationItemclasses, theSystem.ServiceModel.Syndicationnamespace also includes two formatter classes, Atom10FeedFormatter and Rss20FeedFormatter. These classes take aSyndicationFeedobject and generate the corresponding XML content that conforms to either the Atom 1.0 or RSS 2.0 specificiations.
