I have a
servlet which build an XML document on the fly.
My problem is that the servlet shows the xml data as plain text. Instead I want it to show a the contentType text/xml.
I have tried to set the contentType in the servlet:
response.setContentType("text/xml; charset=ISO-8859-1");
- but it doesn�t help.
Here is where I create the output:
How can I set the contentType so the output is shown as text/xml?