SyndicationFeed.SaveAsRss20 Method (XmlWriter)

 

Write the syndication feed to the specified XmlWriter in RSS 2.0 format.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void SaveAsRss20(
	XmlWriter writer
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter to write to.

The following code shows how to write out a SyndicationFeed instance in the RSS 2.0 format.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
// ...
XmlWriter xmlWriter = XmlWriter.Create("TestRSSFile.xml");
feed.SaveAsRss20(xmlWriter);

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: