var m_URL = "http://www.ft.com/rss/home/us"; // Set your URL string xmlStr; using(var wc = new WebClient()) { wc.Headers.Add("user-agent", "Mozilla/5.0 (Windows; Windows NT 5.1; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4"); xmlStr = wc.DownloadString(m_URL); } var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xmlStr);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)