From: Adam R. <ada...@de...> - 2005-07-12 22:39:52
|
Is it possible to set the Content-Type of the HTTP Response sent from the processing of an XQuery? e.g. is there an xquery function to do this? I am calling an XQuery script throught http that returns an XML Document, but the Mime Type it returns indicated by the Content-Type header in the HTTP Response is text/html. I really need it to be text/xml for this script as I am calling it from a client side Java Script using XmlHttpRequest() object. The XmlHttpRequest() object seems to need the mime type ofthe document set to text/xml for it to recognise it as a XML document. I have stored a straight XML document in the database and successfully called it with XmlHttpRequest() object and the only difference that I can see between this static XML document and the output of the XQuery script is the differing mime types. Thanks Adam. |