Hi Guys,
I’ve set up a template which is an RSS page and I’m using the code below. If I view it in the browser it comes up with an error “Invalid XML encoding name”:
This page contains the following errors:
error on line 1 at column 29: Invalid XML encoding name
Below is a rendering of the page up to the first error.
Any ideas? I couldn’t find anything in the forum search matching this error.
I’m using ExpressionEngine 2.1.3 so perhaps this is fixed in the newer 2.4.
{exp:rss:feed channel="kb_articles_{language_code}" status="not closed"}
<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title><![CDATA[{channel_name}]]></title>
<link>{channel_url}</link>
<description>{channel_description}</description>
<dc:language>{channel_language}</dc:language>
<dc:creator>{email}</dc:creator>
<dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
<dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
<admin:generatorAgent rdf:resource="http://www.censornet.com/" >
{exp:channel:entries channel="kb_articles_{language_code}" dynamic_start="on" disable="member_data|pagination" status="open"}
<item>
<title><![CDATA[{title}]]></title>
<link>{title_permalink='kb'}</link>
<guid>{title_permalink='blog'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
<description><![CDATA[{blog_summary_en}{body}]]></description>
<dc:subject><![CDATA[{categories backspace="2"}{category_name}, {/categories}]]></dc:subject>
<dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
</item>
{/exp:channel:entries}
</channel>
</rss>
{/exp:rss:fee}Thanks for any help / advice.
Tim