I am trying to read a feed for the Washington Fish and Wildlife Squad and save this error:
An element named 'RDF' and the namespace 'Http://www.w3.org/1999/02/22-rdf-syntax-ns#' is not a valid feed format.
Here is the code from RssController:
public virtual ActionResult Index() { string feedUrl = @"http://wdfw.wa.gov/news/newsrss.php"; using (XmlReader reader = XmlReader.Create(feedUrl)) { **SyndicationFeed rss = SyndicationFeed.Load(reader);** return View(rss); } }
I made seveal RSS applications, but nave never encountered this problem. Has anyone got any specific ways to parse this in ASP.NET MVC 2? (asterisk strings where an exception occurs.
source share