LJackson
06-24-2010, 11:38 PM
Hi All i have a feed which validates but it says
Feeds should not be served with the "text/html" media type so i need to change it to xml?
so i tried adding "Content-type: application/xml" to the top of my feed like so
<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" "Content-type: application/xml">
but that threw up an error
XML parsing error: <unknown>:1:98: not well-formed
so my question is how do stop serving the data as text/html???
many thanks
luke
Feeds should not be served with the "text/html" media type so i need to change it to xml?
so i tried adding "Content-type: application/xml" to the top of my feed like so
<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" "Content-type: application/xml">
but that threw up an error
XML parsing error: <unknown>:1:98: not well-formed
so my question is how do stop serving the data as text/html???
many thanks
luke