- Table of Contents
- .NET Book Recommendations
- What Is .NET?
- The Microsoft .NET Framework
- The Common Language Runtime (CLR), the Common Type System (CTS), and the Common Language Specification (CLS)
- .NET Framework Class Library
- Visual Studio .NET
- .NET Enterprise Servers and .NET My Services
- .NET Compliant Languages
- C#
- Visual Basic .NET (VB .NET)
- ASP.NET
- XML Web Services
- ADO.NET
- XML.NET
- Windows Forms
- Why .NET?
- Displaying Errors with the Error Provider
- COM Interoperability
- Comparing Java and .NET
- Calling Unmanaged Code
- .NET Application Security
- Code Access Security
- .NET Standards Support
- Numeric Types in the .NET Framework
- Working with Strings
- Formatting Strings
- Trimming Character Strings
- Comparing Strings in .NET 2.0
- Arrays and Collections
- Arrays as Class Members
- Sorting a Multi-Dimensional Array
- File I/O (System.IO)
- Working with File Names
- Using the File System
- Working with Files and Directories
- Monitoring the File System
- Working with Streams
- Working with Text Encodings
- Working with Date and Time
- Extending the DateTime Class
- Fun with Dates
- Exceptions
- Delegates
- Events
- Asynchronous Programming
- Asynchronous File I/O
- Timers
- Random Numbers
- Serialization
- MultiThreading (System.Threading)
- Multi-Threading Overview
- The Managed Thread Pool
- Managed Threading
- Thread Synchronization
- Synchronizing Data Access
- Trace Debugging
- Tracing in .NET 2.0
- ASP.NET Trace
- Validating User Input in ASP.NET Web Pages
- Event Logging
- Monitoring Application Performance
- Accessing the Registry
- Accessing Environment Information
- Environment Variables in .NET 2.0
- Managing Windows Forms Applications
- Working with Email
- Working with Graphics
- Animating a Background
- Working with Images
- Drawing Cycloid Curves
- Simulating the Spirograph
- Building International Web Applications
- .NET Compact Framework
- Mobile Web Development with ASP.NET
- Speech Technologies
- Microsoft MapPoint Web Service
- Working with Typed DataSets
- Using Relationships in DataSets
- DataColumn Expressions
- Playing Simple Sounds
- Playing Sounds with .NET 2.0
- Returning an Image in a Web Page
- RSS
- Reading and Writing Feeds with RSS.NET
- Reading an RSS Feed
- Writing an RSS Feed
- Reading and Writing Feeds with Atom.NET
- Reading an Atom Feed
- Writing an Atom Feed
- Dealing with Multiple Formats
- Best Practices Project Structure
- Best Practices Application Blocks
- The Data Access Application Block
- The Exception Management Application Block
- Best Practices — Performance
- Best Practices — Performance and Scalability
- Best Practices - Testing
- Reading the Tea Leaves, 2005
- Predictions: A Look Back at 2005, and a Look Ahead to 2006
- .NET Downloads
- Application Deployment Overview
- Application Deployment — Versioning
- Application Deployment — Version Policy
- Application Deployment — Packaging and Distribution
- .NET Remoting Overview
- A Remoting Demonstration
- Remoting Configuration
- Remoting: Lifetimes and Leases
- Remoting: Other Issues
- Attributes
- Writing Custom Attributes
- Accessing Attributes in Code
- Reflection
- Class Design: Inheritance, Interface, or Composition?
- The TriTryst Game
- Console Applications in .NET 2.0
- New File I/O Methods in .NET 2.0
- Building Projects with MSBuild
- Unmanaged Callbacks in .NET 2.0
- Timer Troubles
- Non-Rectangular Windows Forms
- Windows Forms Transparency
- 10 Things I Hate About Visual Basic
- 10 Things I Hate About C#
- Background Processing with Idle Time
- Scaling Windows Forms
- Reading and Writing Binary Data
- New Memory Management Functions in .NET 2.0
- Compatibility Between .NET 1.1 and .NET 2.0
- Managed Debugging Assistants in .NET 2.0
- XDir: A Program for Viewing Directory Sizes
- The Microsoft.VisualBasic Namespace
- Operator Overloading
- Working with GPS Data
- Hidden Visual Studio Tools
- .NET 3.0
- The .NET 2.0 Stopwatch Class
- Nullable Types
- Drawing Rotated Text
- Unsafe Code
- Other .NET Languages
- Compiler Directives
- Safe Handles
- Predictions, 2007 Edition
- New Features in C# 3.0
- Generics
- Network Client Programming
- On the Misuse of Exceptions
- Maximum Object Size in .NET
- More on Maximum Object Sizes
- Keyed Collection Memory Limitations
- Matching String Endings
- Allocating Small Data Structures
- Grumbling About Limitations
- Some Thoughts on the Nature of What We Do
- Working with Predicates in Collections
- Working with DataReaders
- Outputting XML with XmlWriter
- Writing XML Data
- Working with Compression
- Another Look at Compressed Streams
- Compressing a Very Large File
- Canonical URIs
- Constructing URIs
- Using OneWayAttribute for Remote Calls
- Selecting a Garbage Collector
- Linked List
- Linked List Application - The MRU List
- Auto-implemented Properties in C#
- The HashSet Collection
- Looking Ahead: 2018
- An Experiment in Optimization
- A Larger Integer
- Extension Methods
- Language Integrated Query (LINQ)
- Variable Length Parameter Lists
- The ReaderWriterLockSlim Synchronization Primitive
- Sorting a Text File
- Sorting a Large Text File
- Using ListView with Large Data Sets
- LINQ One-Liners
- Regular Expression Optimization
- Random File I/O
- Computing the Size of a Structure
- More on Computing Structure Sizes
- UnmanagedMemoryStream
- Dynamically Loading Code
- Building a String Table
- Delegates Versus Function Pointers
- Visual Studio Editor Features
- A Simple Profile Timer
- New Features in C# 4.0
- IEnumerator or IList?
- New Features in .NET 4.0
- Set Operations with IEnumerable and HashSet
- Using File Locks
- Extending Object Functionality
- Clearing a HashSet
- When Hash Codes Matter
- Parsing Command Line Options
- Creating a Single-Instance Program
- Asynchronous Windows Forms Events
- The BackgroundWorker Component
- Fixing a Dumb Mistake
- Thinking About Multi-Threaded Programs
- JavaScript Object Notation
- Useful .NET-related Sites
- Markov Models
- Building an Order 0 Markov Model
- Higher Order Markov Models
- Webmaster's Guide to robots.txt
- An Overview of the Parallel Extensions to .NET
- Parallel Extensions Synchronization Objects
- Thread Safe Collections
- A Bug and a Conundrum
- Another Bug and an Answer
- Task Parallel Library
- Good and Bad Ideas in C#
- Parallel LINQ
- Copying Large Files
- Replacing File.Copy
- Learning from Our Mistakes
- Symbolic Links
- There Is No Easy Fix
- Tracking Hurricanes
- Examining Hurricane Data
- Searching for Multiple Strings
- Simple JSON Processing
- Aho-Corasick String Searching New
- Writing a Web Crawler New
- Web Crawler Politeness New
- Source Control Management New
- Informit Reference Library
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.



Account Sign In
View your cart