This project has moved and is read-only. For the latest updates, please go here.

OPML (Outline Processor Markup Language) Support

The RssToolkit also has support for OPML feeds which allows you to list a number of feeds (referred to as Outlines) that can then be individually referenced or aggregated. When used with the RssToolkit, an OPML file (or feed URL) will cause each referenced feel to be be fetched and processed and the resulting items merged into (at this time) chronological order. This allows you to create an OPML file (or feed) that looks something like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<opml version="1.1">
    <title>List of Feeds News Feeds</title>
    <dateCreated>Tue, 11 Nov 2003 19:47:24 GMT</dateCreated>
    <dateModified>Tue, 11 Nov 2003 19:47:28 GMT</dateModified>
    <outline text='BBC News’ 
                 description='Updated every minute of every day - FOR PERSONAL USE ONLY'
                 language='unknown' title='BBC News' type='rss' version='RSS'
    <outline text='CNET'
                 description='Tech news and business reports by CNET Focused on information technology, core topics include computers, hardware, software, networking, and Internet media.'
                 language='unknown' title='CNET' type='rss' version='RSS2'

Which will result in a single generated feed that aggregates the contents of the two feeds mentioned into a single feed. If you are using the base RssDocument class, you can access all of the items using the standard Items property and the OPML feed (or file) can be loaded using any of the standard Load overrides as shown in the Using RssDocument class section of the Consuming Feeds documenation.

Last edited Jun 16, 2007 at 4:43 AM by IDisposable, version 2


No comments yet.