protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		logger.info("Creating the output file from class Student Xml");
		try {

			String parent = "Student";
			Date dd = new Date();
			String dateString = new SimpleDateFormat("_y_MM_dd_HH_mm_ss")
					.format(dd);
			String outputFileName = parent + dateString + ".xml";

			ServletOutputStream myOut = null;
			byte[] byteBuf = null;
			try {
				byteBuf = StudentToXmlParserService.parser().getBytes();
			} catch (MyServiceException mse) {
				logger.error(
						"Could not copy Database to String to byteBuffer ", mse);
			}

			ByteArrayInputStream in = new ByteArrayInputStream(byteBuf);
			BufferedInputStream buf = new BufferedInputStream(in);
			try {
				myOut = response.getOutputStream();
				// set response headers
				response.setContentType("text/xml");
				response.addHeader("Content-Disposition",
						"attachment; filename=" + outputFileName);
				response.setContentLength((int) StudentToXmlParserService
						.parser().length());
				int readBytes = 0;

				// read from the file; write to the ServletOutputStream
				while ((readBytes = buf.read()) != -1) {
					myOut.write(readBytes);
				}

			} catch (IOException ioe) {

				throw new ServletException(ioe.getMessage());

			} finally {
				if (myOut != null)
					myOut.close();
				if (buf != null)
					buf.close();

			}

		} catch (ServletException se) {
			logger.error(
					"Servlet Exception, could not set the response header ", se);
		} catch (Exception e) {
			logger.warn("Exception produced", e);
		}
		logger.info("Output file was created from class Student Xml");
	}