Problem solve Get help with specific problems with your technologies, process and projects.

Implementing RSS and XML serialization in .NET

Two bloggers have demonstrated how to set up an RSS feed for an ASP.NET application using XML serialization. One uses VB.NET and the other uses C#.

RSS is increasingly emerging as a useful means of exchanging information. And it's not just for the latest news and sports scores -- enterprises are increasingly examining ways to use RSS to improve communication and information sharing among employees.

As RSS spreads, building it into applications grows in importance. Scott Van Vliet recently blogged about this in a post entitled RSS in .NET Made Easy with XML Serialization.

"I use XmlSerializer religiously, and thought it would be quite trivial to build a set of classes to quickly create and publish an RSS feed. Thus, as any geek would do, I did just that," Van Vliet wrote.

"These classes are adorned with System.Xml.Serialization attributes, which comply with the RSS 2.0 Specification," he continued. "To create an RSS document, it's no more difficult than creating and populating [an object]. To generate the XML for this feed, simply call the ToString() method."

Among the comments on Van Vliet's post is a link to a blog post by Phil Weber called East RSS in VB.NET.

"First, I created this class to model the feed….Now all it takes to update the feed is to populate the RSS object and serialize it to XML," Weber wrote. (Source code is available for the "this class" here.)

These quick tips should be enough to get you started with adding RSS to .NET applications.

More on this topic from

  • Definition: RSS
  • Reference: RSS Learning Guide
  • Tip: Use real-time RSS feeds
  • Dig Deeper on .NET Framework development with XML and XAML

    Start the conversation

    Send me notifications when other members comment.

    Please create a username to comment.