PDA

View Full Version : What is "text/html" media type & how to replac


buddha
Mar 30th, 2005, 02:32 PM
Can someone explain what "text/html" media type is and what to use instead?

I created my rss feed and submitted it to http://feedvalidator.org/ it said
This feed is valid, but may cause problems for some users. We recommend fixing these problems. Feeds should not be served with the "text/html" media type


Here is my wp-rss2.php feed:

<rss version="2.0">

<channel>
<title>Sadhana</title>
<link>http://ayurvedahc.com/articlelive/sadhana.xml</link>

<description>
Short looped meditation music/ : Composer is Sanjoy. Provided by Radio Ayurveda Shakti
</description>
<language>en-us</language>
<pubDate>Mon, 29 Mar 2005 18:00:00 EST</pubDate>
<lastBuildDate>Mon, 29 Mar 2005 18:00:00 EST</lastBuildDate>
<generator>I Dunno</generator>
<webMaster>ayurvedahc@yahoo.com</webMaster>
<ttl>360</ttl>

<item>
<title>Some title</title>

<link>
http://ayurvedahc.com/RadioAyS/Sanjoy/sadhana.mp3
</link>

<description>
Podcast by on Thu, 24 2005. General rants/some unknown Cdn Music/
</description>

<enclosure url="http://ayurvedahc.com/RadioAyS/Sanjoy/sadhana.mp3" length="16818532" type="audio/mpeg"/>
</item>
</channel>
</rss>


Thank you.

justSue
Mar 30th, 2005, 08:23 PM
Not sure if this is required, but try adding:
<?xml version="1.0" ?>
as the first line, above your RSS 2.0 tag. Its possible that the validator is interpreting your file as text/html because you don't have the XML version tag.

Just a guess!

buddha
Mar 30th, 2005, 11:07 PM
this invalidates... but i think it is something like this.
thanks anyway.