<%@ Page Language="VB" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.IO" %> @ndyRobinson.com: Download RSS feed in C#
<%----%>

Monday, June 22, 2009

Download RSS feed in C#

WebClient wc = new WebClient(); 

c.Proxy = new WebProxy("dti-filt-01:8080", true, new string[0], CredentialCache.DefaultNetworkCredentials);

string feed = wc.DownloadString("feed url");

lDocument doc = new XmlDocument();

doc.LoadXml(feed);

0 Comments:

Post a Comment

Links to this post:

Create a Link

More information

About this site

@ndyRobinson.com is the online home of Andy Robinson, a VB6/SQL Server developer living and working in the UK (Brighton).

Labels

    <% Dim lsfiles As String() lsfiles = Directory.GetFiles(Server.MapPath("~\labels"), "*.aspx") Dim lsFileName As String Dim lsLabel As String Dim liItems As Int32 For Each File As String In lsfiles lsFileName = Mid$(File, InStrRev(File, "\") + 1) lsLabel = Replace(lsFileName, ".aspx", "") liItems = Regex.Matches(System.IO.File.ReadAllText(File.ToString), "post-title").Count - 1 Response.Write("
  • " & lsLabel & " (" & liItems & ")
  • ") Next %>

My del.icio.us