The output of the final document to the user is controlled by XML processing instructions on the final document. PIs are normally stripped before outputting the document to the user. Processing instructions appear before the first node in an XML document and look like: <?name data?> If the final document was the result of XSLT operations, you may need to insert PIs through the <xsl:processing-instruction... /> command. Output ControlAdd a PI with the name mime-type and data a mime-type to control the mime-type of the document sent to the user. The default is text/xml. e.g.: <?mime-type text/html?> Add a PI with the name charset and data a character encoding to set the character encoding. The default is UTF-8. Add a PI with the name text-only and no data to send the text content of the XML's document element, excluding the document element, to the user. |