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#.

This Content Component encountered an error

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 SearchVB.com

  • Definition: RSS
  • Reference: RSS Learning Guide
  • Tip: Use real-time RSS feeds
  • This was first published in October 2006

    Dig deeper on .NET Framework development with XML and XAML

    0 comments

    Oldest 

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    -ADS BY GOOGLE

    SearchCloudComputing

    SearchSoftwareQuality

    SearchSOA

    TheServerSide

    SearchCloudApplications

    Close