The GetFeed, ProcessFeed, and DisplayFeed methods in the preceding listing are wrappers for the methods of a download manager class, named RssHelpers. (See companion source code for details.) Downloading RSS data is pretty easy, as the following code snippet shows:
public static byte[] GetFeed(string url)
{
WebClient req = new WebClient();
try {
return req.DownloadData(url);
}
catch { return null; }
}
Wednesday, May 31, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment