What is a tutorial on returning xml contents from a JAVA Servlet and displaying in web browser? How to retrieve a file resource from a JAVA Servlet? How to set the HttpServletResponse so that it returns xml data from a JAVA Servlet? How to retrieve URLConnection and connect to a file resource? How to read xml contents from an xml file? How to read and write xml data to a web client?