Wat is het correcte/gangbare mime-type voor RSS 2.0? In het wild zie ik
zowel text/xml als application/xml.
--
http://www.europese-grondwet.nl/ informatie en opinie
Likes: 0
Wat is het correcte/gangbare mime-type voor RSS 2.0? In het wild zie ik
zowel text/xml als application/xml.
--
http://www.europese-grondwet.nl/ informatie en opinie
Ronald Klip schreef:
> Wat is het correcte/gangbare mime-type voor RSS 2.0? In het wild zie ik
> zowel text/xml als application/xml.
RSS is een vorm van XML, de XML-specs zeggen niets over mime-type maar
verwijzen naar RFC 3023, en daar staat dit:
If an XML document -- that is, the unprocessed, source XML document
-- is readable by casual users, text/xml is preferable to
application/xml. MIME user agents (and web user agents) that do not
have explicit support for text/xml will treat it as text/plain, for
example, by displaying the XML MIME entity as plain text.
Application/xml is preferable when the XML MIME entity is unreadable
by casual users. [..]
NOTE: Users are in general not used to text containing tags such
as <price>, and often find such tags quite disorienting or
annoying. If one is not sure, the conservative principle would
suggest using application/* instead of text/* so as not to put
information in front of users that they will quite likely not
understand.
application/xml dus, I presume.
--
http://www.europese-grondwet.nl/ informatie en opinie
Ronald Klip wrote:
> Wat is het correcte/gangbare mime-type voor RSS 2.0? In het wild zie ik
> zowel text/xml als application/xml.
Ikzelf gebruik application/rss+xml [1]
maar ben ook nieuwsgierig naar het antwoord :-D.
[1] Ik zag dat o.a. slashdot dit gebruikt.
--
John Voorbeeldscripts in Perl: http://johnbokma.com/perl/
Website design: http://johnbokma.com/websitedesign/
Ervaren Perl / Java programmeur beschikbaar: http://castleamber.com/
Tevreden opdrachtgevers: http://castleamber.com/testimonials.html
John Bokma schreef:
> Ronald Klip wrote:
>
> > Wat is het correcte/gangbare mime-type voor RSS 2.0? In het wild zie ik
> > zowel text/xml als application/xml.
>
> Ikzelf gebruik application/rss+xml [1]
Klinkt goed...
> [1] Ik zag dat o.a. slashdot dit gebruikt.
Niet meer, zo te zien:
http://slashdot.org/index.rss
HTTP/1.1 200 OK
Date: Tue, 01 Mar 2005 18:49:24 GMT
Server: Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_perl/1.29
X-Powered-By: Slash 2.003000
X-Fry: Leela, there's nothing wrong with anything.
Cache-Control: max-age=1800
Connection: close
Content-Type: text/xml
Content-Encoding: gzip
--
http://www.europese-grondwet.nl/ informatie en opinie
Ronald Klip wrote:
> John Bokma schreef:
>> Ronald Klip wrote:
>>
>> > Wat is het correcte/gangbare mime-type voor RSS 2.0? In het wild
>> > zie ik zowel text/xml als application/xml.
>>
>> Ikzelf gebruik application/rss+xml [1]
>
> Klinkt goed...
>
>> [1] Ik zag dat o.a. slashdot dit gebruikt.
>
> Niet meer, zo te zien:
Jawel, view source op de index:
<LINK REL="alternate" TITLE="Slashdot RSS"
HREF="//slashdot.org/index.rss" TYPE="application/rss+xml">
(Overigens ook geen idee waarom daar 2 // staan)
> http://slashdot.org/index.rss
[ snip ]
> Content-Type: text/xml
Hmmm... verwarrend :-D.
--
John Voorbeeldscripts in Perl: http://johnbokma.com/perl/
Website design: http://johnbokma.com/websitedesign/
Ervaren Perl / Java programmeur beschikbaar: http://castleamber.com/
Tevreden opdrachtgevers: http://castleamber.com/testimonials.html
Ronald Klip wrote:
> John Bokma schreef:
<knip>
> X-Fry: Leela, there's nothing wrong with anything.
Al weer een tijd geleden dat ik er nog zo een tegen kwam.