【发布时间】:2013-04-01 15:45:58
【问题描述】:
我这里有个例外
var stream = e.Result;
var response = XmlReader.Create(stream);
var feeds = SyndicationFeed.Load(response); // IT IS HERE
例外情况
未找到命名空间名称为“”的元素“通道”。 8号线, 位置 2。
RSS 看起来像:
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<atom:link href="http://dallas.example.com/rss.xml" rel="self"
type="application/rss+xml" /> <channel> <title>News</title>
<link>http://www.samsung.com/us</link> <description>News</description>
...
http://validator.w3.org/feed/ 说“这是一个有效的 RSS 提要”。 (你可以在这里查看http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.samsung.com%2Fus%2Ffunction%2Frss%2FrssFeedItemList.do%3FctgryCd%3D101%26typeCd%3DNEWS)
所以我不知道发生了什么...... :(
我们可以解决方法来抑制SyndicationFeed class 的某些验证消息吗?
感谢您提供任何让我有机会忘记此异常的解决方案!
【问题讨论】: