Home > Guides > Programming > .NET and Windows Programming

Toggle Open Guide Table of ContentsGuide Contents

Close Table of ContentsGuide Contents

Close Table of Contents

Reading and Writing Feeds with RSS.NET

Last updated Jan 20, 2005.

RSS.NET is an open source class library for RSS feeds. It provides a reusable object model for parsing and writing RSS feeds, and fully supports RSS versions 0.90, 0.91, 0.92, and 2.0.1. RSS.NET does not support most RSS 1.0 constructs (RDF). There is some mention of a project called RDF.NET, but it appears that the project has been abandoned or possibly merged into some other project.

RSS.NET is still in beta, but it appears to be fully functional. You can download the source code and project files from the project's Web site here. That is a .tar.gz file, which WinZip knows how to extract, but Windows' built-in decompressor can't handle. I'm surprised that the author doesn't make the project available in .ZIP format, as his primary audience is Windows programmers who typically aren't familiar with .tar.gz files.

The project's Web site includes a full class library reference, and a page of code samples in C# and Visual Basic that show how to use the class library to perform common tasks. That is the extent of the documentation currently available.

Building the RSS.NET library

Once you've downloaded the RSS.NET code, extract it into its own directory, load the project, and compile. RSS.NET is written in C#, so you'll need the C# compiler in order to compile it. If you don't have C# .NET, you'll have to compile the library using the command line tools that ship with the .NET Framework SDK. The command line compiler is located in the .NET Framework directory under your Windows directory. On my system, the full path name is C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322.

To compile with the command line compiler, you'll either have to enter all of the project file names on the command line, or use a response file for the compiler. Considering how many files are included in the project, I elected to use a response file, which I've included here.

/target:library
/out:RSS.NET.dll
RssFeed.cs
RssModule.cs
RssModuleItem.cs
RssReader.cs
RssWriter.cs
Collections\ExceptionCollection.cs
Collections\RssCategoryCollection.cs
Collections\RssChannelCollection.cs
Collections\RssFeedCollection.cs
Collections\RssItemCollection.cs
Collections\RssModuleCollection.cs
Collections\RssModuleItemCollection.cs
Collections\RssModuleItemCollectionCollection.cs
RssChannel\RssChannel.cs
RssChannel\RssCloud.cs
RssChannel\RssImage.cs
RssChannel\RssTextInput.cs
RssItem\RssEnclosure.cs
RssItem\RssGuid.cs
RssItem\RssItem.cs
RssItem\RssSource.cs
RssModules\RssPhotoAlbum.cs
Shared\DBBool.cs
Shared\Rfc822Date.cs
Shared\RssCategory.cs
Shared\RssDefault.cs
Shared\RssElement.cs
Shared\RssEnumerators.cs

The first two lines are compiler options that tell the compiler what kind of file to create and what to name it. The rest of the lines identify the source files that it needs to compile in order to build the library. Create a file called rssnet.resp, and add the above lines to it. Then, execute this command at the Windows command line prompt to create the RSS.NET assembly:

csc @rssnet.resp

The file RSS.NET.DLL will be created in the project's main directory. If you compiled with Visual Studio or Visual C# .NET, then the project's assembly will be in the appropriate \bin directory.

Discussions

Copies of the array?
Posted Dec 23, 2008 03:40 PM by luige21
1 Replies
Hi
Posted Dec 5, 2008 05:10 AM by ajay2000bhushan
2 Replies
You have no clue.
Posted Jun 10, 2008 03:28 PM by theinternetmaster
1 Replies

Make a New Comment

You must log in in order to post a comment.

Related Resources

Jim Mischel"Highly unlikely" does not mean "impossible"
By Jim MischelJuly 18, 2009 No Comments

One of my programs crashed the other day in a very unexpected place.  A call to System.Threading.ConcurrentQueue.TryDequeue (from the Parallel Extensions to .NET) resulted in an OverflowException being thrown.  Investigation revealed a pretty serious bug in the System.Random constructor.

It's Here; Put Away Your Pre-Conceptions on What an OS Must Be: Part II
By John TraenkenschuhMay 24, 2009 No Comments

In the last blog in this series, Traenk relates his first experiences with computers and with coding.  But now, some years have passed. . .

It's Here; Put Away Your Pre-Conceptions on What an OS Must Be: Part I
By John TraenkenschuhMay 24, 2009 No Comments

Traenk relates his past experience with Operating Systems that goes back 25 years, ok, more than that but he ain't tellin'

See More Blogs

Informit Network