Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,558 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,230 people online right now. Registration is fast and FREE... Join Now!




Problem with RSS feed

 
Reply to this topicStart new topic

Problem with RSS feed

cygnusX
post 9 Oct, 2008 - 08:28 AM
Post #1


D.I.C Head

**
Joined: 19 May, 2007
Posts: 159


My Contributions


I'm checking an rss feed for errors into online feed validator and there is the following error: 'Self reference doesn't match document location'.I have this line in the xml document: '<atom:link href="http://localhost/products.xml" rel="self" type="application/rss+xml" />'. I don't know why i need that line but the validator says that i have to put it in the document because blah blah blah...

Explanation

When rel="self", the href attribute is expected to identify a resource equivalent to the containing element.

Solution

Check the document referenced by the href attribute. If it is not the intended feed, correct it.

This may not be a problem. At the current time, the feedvalidator does not probe to assess equivalence of documents.


This doesn't help me,so how to solve that problem?Also i want to ask how to put html link into RSS feed.Let's say i have <item><description>some text<a href="someValue">link</a></description></item>.The feed validator says 'Undefined description element: a'. How to solve those two problems?Thanks in advance.

This post has been edited by cygnusX: 9 Oct, 2008 - 08:31 AM
User is offlineProfile CardPM

Go to the top of the page


Martyr2
post 9 Oct, 2008 - 10:38 AM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,008



Thanked 170 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


You appear to be mixing RSS and ATOM feed content together. You can't do that. They are two separate specifications. If you were going with ATOM you should be seeing something like...

CODE

<link rel="self" type="application/atom+xml" href="http://example.org/products.atom"/>


You can take a look at some atom feed examples around the net to see how you structure this properly for atom. If you want RSS, then you can look that up as well, but you can't be mixing them. smile.gif

User is offlineProfile CardPM

Go to the top of the page

cygnusX
post 9 Oct, 2008 - 12:31 PM
Post #3


D.I.C Head

**
Joined: 19 May, 2007
Posts: 159


My Contributions


QUOTE(Martyr2 @ 9 Oct, 2008 - 11:38 AM) *

You appear to be mixing RSS and ATOM feed content together. You can't do that. They are two separate specifications. If you were going with ATOM you should be seeing something like...

Yeah,i know they're different specifications.But when i check my feed here i'm receiving this error:

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation. line 54, column 1: Missing atom:link with rel="self"
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 02:51AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month