我正在使用.net SyndicationFeed
将输入写入xml文件。这是SaveAsRss20
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>My Title</title>
<description>My Feed Description</description>
<item>
<author>notAnEmail@notAHost.com</author>
<category>Good</category>
<title>The big story</title>
<description>The big story content</description>
<pubDate>Wed, 11 Apr 2012 14:49:46 -0400</pubDate>
</item>
<item>
<author>notAnEmail@notAHost.com</author>
<category>Bad</category>
<title>Small news</title>
<description>Small news content</description>
<pubDate>Wed, 11 Apr 2012 14:49:46 -0400</pubDate>
</item>
<item>
<author>notAnEmail@notAHost.com</author>
<category>Bad</category>
<category>Good</category>
<title>Birthday announcements</title>
<description>Birthday announcements content</description>
<pubDate>Wed, 11 Apr 2012 14:49:46 -0400</pubDate>
</item>
</channel>
</rss>
Feed在Internet Explorer 8中作为xml文件打开 - 它没有获得其他feed xml文件获得的xslt处理。
我也试过SaveAsAtom10
导致不同的xml,但IE8行为相同。
我的同事说他可以使用另一个feedreader订阅Feed,但我选择的feedreader是IE8,所以我想让我的feed使用它。
我错过了什么让IE8识别出提要?
答案 0 :(得分:1)
确保您的响应类型为:application / rss + xml
我知道我在使用IE和Feed时遇到了类似的问题,其原因通常是响应类型。