xmlrssrss2

RSS file not rendering as expected in firefox!


I have an rss XML file:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>ABC News</title>
        <link></link>
        <description></description>
        <copyright></copyright>
        <lastBuildDate>Mon, 26 Oct 2009 17:49:44 +05-30</lastBuildDate>
        <generator>Super Simple RSS</generator>
        <webMaster></webMaster>
        <item>
            <title>Get Visual Studio</title>
            <link>http://www.visual-studio.com</link>
            <description>
                &lt;hr&gt;&lt;/hr&gt;
            </description>          
        </item>
        <item>
            <title>Get Windows 7</title>
            <link>http://www.windows7.com</link>
            <description>
                Enter Text Here
            </description>          
        </item>
    </channel>
</rss>

It renders properly in IE but not in firefox. Firefox displays a message "This XML file does not appear to have any style information associated with it. The document tree is shown below." and renders it as a XML tree. But on IE, it renders as I want.

alt text http://img188.imageshack.us/img188/4980/rssoz.jpg

Can't even guess how is it working on IE. Please help. Am I missing something?


Solution

  • Hey...got the answer....it was the <link></link> which was creating the problem. The value for the node is required in Firefox... Looks weired but solves my problem !! :-)