我这里有个例外
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 类的一些验证消息吗?
感谢您提供任何让我有机会忘记这个例外的解决方案!