HttpServletResponse
response.setContentType("text/xml;charset=UTF-8");
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
response.getWriter().write(text);
response.getWriter().flush();
response.getWriter().close();