[Mono-list] RSS readers
Carl Olsen
carl at carl-olsen.com
Sun Oct 1 18:33:36 EDT 2006
You could do string comparison or parse it as XML. It looks like you are
getting valid XML.
-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Rob Brown-Bayliss
Sent: Sunday, October 01, 2006 5:16 PM
To: Mono-list at lists.ximian.com
Subject: [Mono-list] RSS readers
Hi, I am using a dll called Rss.NET from http://rss-net.sourceforge.net/
I can't find any contact on their web site so I thought I would ask here:
I have this sample of an rss feed:
// <item>
// <pubDate>Sun, 01 Oct 2006 20:06:41
GMT</pubDate>
// <title>M 2.7, Southern California</title>
// <description>October 01, 2006 20:06:41
GMT</description>
// -
// <link>
//
http://earthquake.usgs.gov/eqcenter/recenteqsww/Quakes/ci14254252.php
// </link>
// <geo:lat>33.2446</geo:lat>
// <geo:long>-116.1261</geo:long>
// <dc:subject>2</dc:subject>
// <dc:subject>pasthour</dc:subject>
// <dc:subject>3.50 km</dc:subject>
// <guid isPermaLink="false">ci14254252</guid>
// </item>
and this snipet of code:
private void ListQuakes()
{
Console.WriteLine (this.channel.Title);
items = this.channel.Items;
IEnumerator enu = this.items.GetEnumerator();
while (enu.MoveNext ()) {
Rss.RssItem item = (Rss.RssItem)
enu.Current;
Console.WriteLine (item.Title);
Console.WriteLine (item.Description);
}
}
which works, but I cant seem to find any way of extracting the <geo:
and <dc: data from the items.
Does any one have some experience with this library or pointers to
another c# RSS library I could use?
Thanks.
--
Rob
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list