
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
The Atom Syndication Format is an XML language used for web feeds.
This project is a .NET implement of Atom 1.0.
You may want to learn about the Atom from the links below:
Most of the modern feed readers support Atom.
You can use this library to build a feed server, or build an app to handle Atom feeds.
dotnet add package AtomFeed
Serialize:
using AtomFeed;
using AtomFeed.Element;
var feed = new Feed
{
Id = "urn:uuid:" + Guid.NewGuid().ToString(),
Title = "My Blog Feed",
Updated = DateTimeOffset.UtcNow,
Entries =
[
new Entry
{
Id = "urn:uuid:" + Guid.NewGuid().ToString(),
Title = "My First Article",
Updated = DateTimeOffset.UtcNow
}
]
};
var xmlDocument = Atom.Serialize(feed);
Deserialize:
using AtomFeed;
const string xml =
"""
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>urn:uuid:01931011-954d-71ee-ade5-0146811ae69f</id>
<title>Sample Feed</title>
<updated>2024-11-09T08:36:48Z</updated>
</feed>
""";
var feed = Atom.Deserialize(xml);
Normally, the strict mode is disabled, when the giving feed is invalid, the parser will return null.
If the strict mode is enabled, the parser will throw an exception.
The strict mode can be used to validate the feed, it follows the W3C Atom feed validation.
var xml = string.Empty;
// An System.Data.ArgumentException will be thrown,
// because the feed is empty.
var feed = Atom.Deserialize(xml, true);
const string xml =
"""
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
</feed>
""";
// An System.Data.ConstraintException will be thrown,
// because the feed <id> tag is missing.
var feed = Atom.Deserialize(xml, true);
See more in the DeserializeStrictModeTests.cs
The MIT License
FAQs
Atom Feed (RSS) library for .NET Framework.
We found that atomfeed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.