2012-04-11 56 views
0

我正在使用.net SyndicationFeed将馈送写出到xml文件。下面是SaveAsRss20Internet Explorer 8无法识别SyndicationFeed输出rss

<?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>[email protected]</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>[email protected]</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>[email protected]</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> 

输出饲料打开,如Internet Explorer 8中的XML文件 - 它没有得到治疗的XSLT,其他饲料的xml文件得到。

我也试过SaveAsAtom10,它导致不同的xml,但是相同的IE8行为。

我的同事说他能够使用另一个feedreader订阅feed,但我选择的feedreader是IE8,所以我想让我的feed与它一起工作。

我错过了什么让IE8识别的提要?

回答

1

确保您的响应类型是:应用程序/ RSS + XML

我知道我已经与IE类似的问题和饲料,用通常的原因是响应类型。