MVC2

编程入门 行业动态 更新时间:2024-10-26 02:28:08
本文介绍了MVC2 - 消费与RDF RSS提要,并命名www.w3/1999/02/22-rdf-syntax-ns#“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我尝试读取鱼类和野生动物的华盛顿Departmene饲料,并保持ETTING这个错误:

I' trying to read the feed for the Washington Departmene of Fish and Wildlife, and keep etting this error:

与NAME的元素RDF和  命名空间  www.w3/1999/02/22-rdf-syntax-ns#  是不是允许饲料格式。

The element with name 'RDF' and namespace 'www.w3/1999/02/22-rdf-syntax-ns#' is not an allowed feed format.

下面是从RssController的code:

Here's the code from RssController:

public virtual ActionResult Index() { string feedUrl = @"wdfw.wa.gov/news/newsrss.php"; using (XmlReader reader = XmlReader.Create(feedUrl)) { **SyndicationFeed rss = SyndicationFeed.Load(reader);** return View(rss); } }

我已经做了seveal RSS应用程序,但绝不殿遇到了这个问题。任何人都得到了能够在ASP.NET MVC 2解析这个任何具体的方法呢? (与asterics该行是在发生异常。

I've done seveal RSS applications but nave never ran into this issue. Anyone got any concrete ways of being able to parse this in ASP.NET MVC 2? (the lines with asterics are where the exception happens.

推荐答案

有对RSS 1.0的支持。如何在这里推出自己的支持,例如:www.4guysfromrolla/articles/031809-1.aspx

There's no support for RSS 1.0. Example of how to roll your own support here : www.4guysfromrolla/articles/031809-1.aspx

更多推荐

MVC2

本文发布于:2023-10-24 08:54:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1523499.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!