Edentity Web Systems
You solve creative. We crack code.
/Header/WhoWeAre.jpg
 

07/20/2010 Creating and consuming Rss/Atom syndication feed in .NET Framework 3.5
Posted by Osvel Legon

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.Syndication namespace.

Usually we were exposing or consumimg syndication feeds like RSS or Atom by reading or writing the XML structure of the feed. There is no more need of this approach, when using the .Net Framework 3.5/4.0.

The most important class in the new namespace is SyndicationFeed. This class represents a top-level feed object, <feed> in Atom 1.0 and <rss> in RSS 2.0. It has properties like Title, Description, Links, and Copyright, which provide details about the feed. The content items that make up the feed are specified via the Items property, which is a collection of SyndicationItem objects. The SyndicationFeed class also has a static Load method that parses and loads the information from a specified RSS 2.0 or Atom 1.0 syndication feed.

In addition to the SyndicationFeed and SyndicationItem classes, the System.ServiceModel.Syndication namespace also includes two formatter classes, Atom10FeedFormatter and Rss20FeedFormatter. These classes take a SyndicationFeed object and generate the corresponding XML content that conforms to either the Atom 1.0 or RSS 2.0 specificiations.

 

« Back to Blog Main Page |

0 Comment(s)

Leave Comment

Name:
Comment:  
 
Security Check: 
 
 
Edentity Web Systems Inc.
Suite 201
40 Spadina Ave.
Toronto ON
M5V 2H8
Tel:
416.591.2500
Fax:
416.352.5270

From Our Blog

09/03/2010
Canonical Links Posted by Russell Huntington
08/31/2010
HTML5 In All its Glory! Posted by Chuck Lee
08/26/2010
Home | Who We Are | What We Do | Clients & Brands | Careers | Contact

Copyright © 2010 Edentity Web Systems Inc. Privacy Policy