@@ -0,0 +1,1051 @@
+import java.io.Reader;%0Aimport java.io.StringReader;%0Aimport java.io.Writer;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.xml.stream.XMLEventReader;%0Aimport javax.xml.stream.XMLEventWriter;%0Aimport javax.xml.stream.XMLInputFactory;%0Aimport javax.xml.stream.XMLOutputFactory;%0Aimport javax.xml.stream.XMLStreamException;%0A%0Aclass Tester %7B%0A  %0A  public void exec(HttpServletRequest request, Writer out)%0A      throws ServletException %7B    %0A    String doc = request.getParameter(%22doc%22);   %0A    Reader input = new StringReader(doc);       %0A    try %7B      %0A      XMLInputFactory inputFactory = XMLInputFactory.newInstance();        %0A      XMLEventReader eventReader = inputFactory.createXMLEventReader(input); %0A      XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();%0A      XMLEventWriter eventWriter = outputFactory.createXMLEventWriter(out);                  %0A      eventWriter.add(eventReader);      %0A    %7D catch (XMLStreamException e) %7B%0A      throw new ServletException(e);%0A    %7D    %0A  %7D %0A  %0A%7D%0A

Create Tester.java