[Zope] XML/headers

Martijn Faassen m.faassen@vet.uu.nl
Wed, 19 Jan 2000 17:37:25 +0100


Michel Pelletier wrote:
> 
> Use XMLDocument.
> 
> http://www.zope.org/Products/XMLDocument
> 

Um, but possibly he doesn't want to (while I definitely recommend
XMLDocument) and he asked how to manually set the return header.
Wouldn't Zope stay away from the returned text if it isn't set to
text/html?

Anyway, some minor experimenting seems to indicate that this DTML method
may be a step into the right direction:

<dtml-call "RESPONSE.setHeader('Content-Type', 'text/xml')">
<foo>
<bar>foo</bar>
</foo>

Regards,

Martijn