RSS Not Showing Correctly - Is there really anything wrong?

Discussion in 'XML & RSS' started by dylanj, Jun 7, 2008.

  1. #1
    I have the following RSS code in an XML file.
    
    <?xml version="1.0"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    
    <title>hi (RSS) - DT Centrepiece 4</title>
    <description>MainPage</description>
    <link>http://127.0.0.1/C4.2/index.asp?p=1</link>
    
    <atom:link href="http://127.0.0.1/C4.2/rss.asp?p=1" rel="self" type="application/rss+xml" />
    
    <item>
    <title>123</title>
    <description>hi</description>
    <link>http://127.0.0.1/C4.2/index.asp?p=1</link>
    </item>
    
    <item>
    <title>blah</title>
    <description>hi</description>
    <link>http://127.0.0.1/C4.2/index.asp?p=1</link>
    </item>
    
    </channel>
    </rss>
    
    Code (markup):
    The first item shows up fine, but the second item doesn't show up at all in IE or Safari (Works in Firefox). IE says that the RSS contains an error. Any ideas what this error might be? All of the browsers say that there's a problem, but none of them will even give me an error number or description.
     
    dylanj, Jun 7, 2008 IP
  2. Dayton Internet Marketing

    Dayton Internet Marketing Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try adding this line at the end put the exact url of the rss in it.

    <atom:link href="http://www.yourdomain.com/rss.xml" rel="self" type="application/rss+xml" />
    </channel>

    </rss>


    :D
     
  3. Dayton Internet Marketing

    Dayton Internet Marketing Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    All yeah besides that line there is nothing wrong with it at all older versions of Internet Explorer do not display rss to add it to your site the correct line of code on your page to make it display after the url in the address bar is

    <link rel="alternate" type="application/rss+xml" hreflang="en-gb" href="http://www.yourdomain.com/rss.xml" title="RSS Feed: The Title of your url ">

    this code should go in the head of your page, like in between these

    <head>
    </head>
     
  4. dylanj

    dylanj Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Figured it out - Needs <guid> tag
     
    dylanj, Jun 14, 2008 IP