When I access the page of the following PHP code in IE, IE produces the error, "Internet Explorer does not support feeds with DTDs. This feed contains a DTD (Document Type Definition). ... ... DTDs are used to define a structure of a webpage. Internet Explorer does not support DTDs in feeds."
<?php
header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8" ?>';
?>
<!DOCTYPE doctypeName [
<!ENTITY nbsp " ">
]>
<rss version="2.0">
<channel>
<title>Sample Feed</title>
<link>http://google.com</link>
<description>This is a test</description>
<item>
<title>Item</title>
<description>This is the item. </description>
</item>
</channel>
</rss>
I suspect this part is the problem:
<!DOCTYPE doctypeName [
<!ENTITY nbsp " ">
]>
But if I remove it, I get this error instead:
Reference to undefined entity 'nbsp'. Line: 10 Character: 36
This is the item.
So it is necessary to allow
in the description tag.
Any ideas?