The default content type for a response coming from an HttpServelet is "text/html". What you'll need to do to display xml in the browser is somethig like the following...
..more code..
response.setContentType("text/xml");
java.io.PrintWriter out = response.getWriter();
out.println(xmlDumpedToAString);
Note: The println() takes a
String parameter. You'll probably need to have some code to transform your object (...I'm assuming DOM) into a string representation.
Hope this helps,
Byron Estes<br />Sun Certified Enterprise Architect<br />Senior Consulant<br />Blackwell Consulting Services<br />Chicago, IL<br /><a href="http://www.bcsinc.com" target="_blank" rel="nofollow">www.bcsinc.com</a>