Thursday, November 19, 2009

Invalid RSS Feed character?

%26lt;?xml version="1.0" encoding="utf-8"?%26gt;


%26lt;rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds... xmlns:media="http://search.yahoo.com/mrs...





%26lt;channel%26gt;


%26lt;title%26gt; RantCast %26lt;/title%26gt;


%26lt;description%26gt; A podcast dedicated to yelling at things that get on my nerves! %26lt;/description%26gt;


%26lt;itunes:author%26gt;Kyle %26lt;/itunes:author%26gt;


%26lt;link%26gt; %26lt;/link%26gt;http://rantcast.podshow.com/%26lt;/link%26gt;


%26lt;itunes:image href="http://i78.photobucket.com/albums/... /%26gt;


%26lt;pubDate%26gt; Sun, 22 Jul 2007 21:00:00 EST %26lt;/pubDate%26gt;


%26lt;language%26gt;en-us%26lt;/language%26gt;


%26lt;copyright%26gt; Copyright Year Your_Name %26lt;/copyright%26gt;





%26lt;item%26gt;


%26lt;title%26gt; TESTCAST%26lt;/title%26gt;


%26lt;description%26gt;Just a test to see if this works %26lt;/description%26gt;


%26lt;itunes:author%26gt; Kyle %26lt;/itunes:author%26gt;


%26lt;pubDate%26gt; Thu, 22 Jul 2007 5:00:00 EST %26lt;/pubDate%26gt;


%26lt;enclosure url="%26gt; http://www.filefreak.com/pfiles/view/219... title="rantube2.mp3%26lt;/item%26gt;


%26lt;/channel%26gt;


%26lt;/rss%26gt;


Itunes says ther are invalid characters in the feed Where are


they?

Invalid RSS Feed character?
The error is probably because you're using XML reserved characters in the text area. Reserved characters are double, quote, ampersand, greater than and less than.





From looking at the XML code from your question I see two issues the first is with the enclosure. The attribute url contains greater than before the url which is wrong. The second is the title attribute missing a closing double quote.





You can use the http://feedvalidator.org/ site to validate your rss xml.





I've correct the issues in the example below but I haven't checked it is valid in itunes as it still needs work.


START ----%26gt;%26gt;


%26lt;?xml version="1.0" encoding="utf-8"?%26gt;


%26lt;rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds... xmlns:media="http://search.yahoo.com/mrs...


%26lt;channel%26gt;


%26lt;title%26gt; RantCast %26lt;/title%26gt;


%26lt;description%26gt; A podcast dedicated to yelling at things that get on my nerves! %26lt;/description%26gt;


%26lt;itunes:author%26gt;Kyle %26lt;/itunes:author%26gt;


%26lt;link%26gt; %26lt;/link%26gt;http://rantcast.podshow.com/%26lt;/link%26gt;


%26lt;itunes:image href="http://i78.photobucket.com/alb" /%26gt;


%26lt;pubDate%26gt; Sun, 22 Jul 2007 21:00:00 EST %26lt;/pubDate%26gt;


%26lt;language%26gt;en-us%26lt;/language%26gt;


%26lt;copyright%26gt; Copyright Year Your_Name %26lt;/copyright%26gt;





%26lt;item%26gt;


%26lt;title%26gt; TESTCAST%26lt;/title%26gt;


%26lt;description%26gt;Just a test to see if this works %26lt;/description%26gt;


%26lt;itunes:author%26gt; Kyle %26lt;/itunes:author%26gt;


%26lt;pubDate%26gt; Thu, 22 Jul 2007 5:00:00 EST %26lt;/pubDate%26gt;


%26lt;enclosure url="http://www.filefreak.com/pfiles/vie... title="rantube2.mp3" /%26gt;


%26lt;/item%26gt;


%26lt;/channel%26gt;


%26lt;/rss%26gt;


%26lt;%26lt;---- END


No comments:

Post a Comment