Because text/xml has issues as the MIME type. For example, it's default encoding is suppossed to be ASCII and it can't use some Unicode encodings depending on the protocol. application/xml has fewer restrictions, and in addition marks an XML document as being intended as data to be processed by a program/app. That's why all feed types, for example, follow the MIME type application/rss+xml, marking the type + format as being a machine processable XML document.
application/xml is just the generic equivelant where no specific type for the format has been assigned/registered. Paddy Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative ________________________________ From: takeshin <[email protected]> To: [email protected] Sent: Sat, January 2, 2010 11:37:59 PM Subject: RE: [fw-general] Sitemap headers Razorblade wrote: > > > Here it is > $response = $this->getResponse(); > $response->setHeader('Cache-Control', 'public', true) > ->setHeader('Content-Description', 'File Transfer', true) > ->setHeader('Content-Type', 'application/xml', true) > ->setHeader('Content-Transfer-Encoding', 'binary', true) > ->appendBody($xmlString); > > Sergio > Thank you. BTW, why not text/xml ? -- regards takeshin -- View this message in context: http://n4.nabble.com/Sitemap-headers-tp997420p997493.html Sent from the Zend Framework mailing list archive at Nabble.com.
