RSS

How do I fix the RSS "XML page cannot be displayed" error?

Scenario:
"When I click on my RSS link, I get the following error:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource 'http://yourdomain.ext/xml-rss2.php'. Line X, Position Y


How do I fix it?"

Solution:
This is usually due to some characters which cause XML to not validate not being escaped. If you enclose them inside a CDATA section, the error will disappear. A CDATA section looks like this:

<![CDATA[insert your content with characters that need to be escaped here]]>

The most common error for Nucleus users is the following line from the feeds/rss20 skin:

<copyright>?</copyright> <!-- Copyright notice -->

Just delete the "?" and you will be fine!

Original forum thread (thanks, pepiino and danielck!):
http://forum.nucleuscms.org/viewtopic.php?t=11206

section: RSS | submitted by Leng on 2006.Aug.06 | 2271 views

item rate
Total votes: 1 - Rating: 2.00

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10