public class AnimationGenerationServlet extends HttpServlet { [...] protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { XMLReader reader; String xmlData = " " + " " + " " + " " + " " + " " + " " + " ]>" + ""; //InputSource myFile = new InputSource(req.getParameter("xmlFrames")); InputSource myFile = new InputSource(req.getParameter(xmlData)); reader.parse(myFile); int i = 0; while ( DER_ER_DATA_AT_ITERERE_PÅ ) { System.out.println("frame url: " + myFile.root.node("frames").node("frame").node(i).value(); i++; } } catch (IOException e) { e.printStackTrace(); } catch (SAXException e) { e.printStackTrace(); } } }