System.ServiceModel.Syndication
9.0.3
Prefix Reserved
See the version list below for details.
dotnet add package System.ServiceModel.Syndication --version 9.0.3
NuGet\Install-Package System.ServiceModel.Syndication -Version 9.0.3
<PackageReference Include="System.ServiceModel.Syndication" Version="9.0.3" />
<PackageVersion Include="System.ServiceModel.Syndication" Version="9.0.3" />
<PackageReference Include="System.ServiceModel.Syndication" />
paket add System.ServiceModel.Syndication --version 9.0.3
#r "nuget: System.ServiceModel.Syndication, 9.0.3"
#addin nuget:?package=System.ServiceModel.Syndication&version=9.0.3
#tool nuget:?package=System.ServiceModel.Syndication&version=9.0.3
About
Provides types for generating and consuming RSS and Atom feeds. It is used for creating and parsing syndication feeds, making it easier to build and integrate web content syndication.
Key Features
- Easy generation and parsing of RSS and Atom feeds.
- Customizable for different syndication needs.
- Support for both feed reading and writing.
How to Use
Creating a Feed
using System.ServiceModel.Syndication;
using System.Xml;
// Create a new syndication feed
SyndicationFeed feed = new SyndicationFeed(
"Feed Title",
"Feed Description",
new Uri("http://example.com"),
"FeedID",
DateTime.Now);
// Add items to the feed
SyndicationItem item1 = new SyndicationItem(
"Title1",
"Content1",
new Uri("http://example.com/item1"));
feed.Items = new List<SyndicationItem> { item1 };
// Serialize the feed to RSS format
using (XmlWriter writer = XmlWriter.Create("rss.xml"))
{
Rss20FeedFormatter rssFormatter = new Rss20FeedFormatter(feed);
rssFormatter.WriteTo(writer);
}
Resulting RSS feed:
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>Feed Title</title>
<link>http://example.com/</link>
<description>Feed Description</description>
<lastBuildDate>Sat, 11 Nov 2023 18:05:21 +0100</lastBuildDate>
<a10:id>FeedID</a10:id>
<item>
<link>http://example.com/item1</link>
<title>Title1</title>
<description>Content1</description>
</item>
</channel>
</rss>
Consuming a Feed
using System.ServiceModel.Syndication;
using System.Xml;
string feedUrl = "https://devblogs.microsoft.com/dotnet/feed/";
using XmlReader reader = XmlReader.Create(feedUrl);
// Read the feed using Atom10FeedFormatter.
SyndicationFeed feed = SyndicationFeed.Load(reader);
Console.WriteLine($"Feed Title: {feed.Title.Text}");
Console.WriteLine("Feed Items:");
// Iterate through the feed items and display the title and a brief summary of each.
foreach (SyndicationItem item in feed.Items)
{
Console.WriteLine($"Title: {item.Title.Text}");
Console.WriteLine($"Published Date: {item.PublishDate.DateTime}");
}
/*
* This code produces the following output:
*
* Feed Title: .NET Blog
* Feed Items:
* - Title: Join us for the Great .NET 8 Hack
* Published Date: 07/11/2023 18:05:00
* - Title: The convenience of System.IO
* Published Date: 06/11/2023 18:05:00
*/
Main Types
The main types provided by this library are:
System.ServiceModel.Syndication.SyndicationFeed
System.ServiceModel.Syndication.SyndicationItem
System.ServiceModel.Syndication.Rss20FeedFormatter
System.ServiceModel.Syndication.Atom10FeedFormatter
Additional Documentation
Feedback & Contributing
System.ServiceModel.Syndication is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (54)
Showing the top 5 NuGet packages that depend on System.ServiceModel.Syndication:
Package | Downloads |
---|---|
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. |
|
Kentico.Xperience.Libraries
The runtime assemblies for libraries and applications that use Kentico Xperience API. |
|
Dapplo.HttpExtensions
A library extensions to simplify HTTP usage. |
|
Indice.AspNetCore.Identity
Package Description |
|
StockSharp.Rss
RSS |
GitHub repositories (26)
Showing the top 20 popular GitHub repositories that depend on System.ServiceModel.Syndication:
Repository | Stars |
---|---|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 2, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
Prowlarr/Prowlarr
Prowlarr is an indexer manager/proxy built on the popular *arr .net/reactjs base stack to integrate with your various PVR apps, supporting management of both Torrent Trackers and Usenet Indexers.
|
|
microsoft/dotnet-podcasts
.NET reference application shown at .NET Conf featuring ASP.NET Core, Blazor, .NET MAUI, Microservices, Orleans, Playwright, and more!
|
|
KSP-CKAN/CKAN
The Comprehensive Kerbal Archive Network
|
|
dotnet/wcf
This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.
|
|
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
|
|
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
|
|
blogifierdotnet/Blogifier
Blogifier is an open-source publishing platform Written in ASP.NET and Blazor WebAssembly. With Blogifier make a personal blog or a website.
|
|
jbe2277/waf
Win Application Framework (WAF) is a lightweight Framework that helps you to create well structured XAML Applications.
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
YAFNET/YAFNET
🌐 YAF.NET - C# ASP.NET Forum
|
|
Deali-Axy/StarBlog
☀StarBlog 是一个基于 .NET 6 和 ASP.NET Core 开发的现代博客系统,支持 Markdown 文章导入,遵循 RESTful 接口规范。前端基于 Vue + ElementUI 开发,可作为 .NET Core 入门学习项目,同时配套了一系列开发笔记,记录了从零开始构建这个博客系统的全过程,可以帮助学习理解 .Net Core 项目的开发流程。
|
|
linkdotnet/Blog
A blog (engine) completely written in C# and Blazor. It aims to be a simple use and easy to extend platform. Blogposts are written in Markdown and are rendered to HTML. This gives all the flexibility needed to express yourself but also have an easy way of creating posts in the first place.
|
|
VocaDB/vocadb
VocaDB is a Vocaloid Database with translated artists, albums, music videos and more.
|
|
MediaPortal/MediaPortal-2
Development of MediaPortal 2
|
|
davidortinau/Xappy
A mobile app to track Xamarin news and explore all the goodness that is .NET for Mobile developers
|
|
joelverhagen/TorSharp
Use Tor for your C# HTTP clients. Use Privoxy or .NET 6+ SOCKS support to proxy HTTP traffic.
|
|
insomniachi/Totoro
A Windows 10/11 only application that is a go to for all things anime.
|
|
Samsung/Tizen.NET
Welcome to Tizen .NET
|
|
Shazwazza/Articulate
A wonderful Blog engine built on Umbraco
|