Learning from the past, and moving toward the future
Given the following XML in a String that is passed as a parameter with identifier hxml in Servlet: 0 Success We want to construct an XML file using JDOM. Here’s the code snippet: try { SAXBuilder xmlBuilder = new SAXBuilder(); Reader in = new StringReader(request.getParameter(“hxml”)); Document xmlDoc = this.xmlBuilder.build(in); System.out.println(“Root: ” + xmlDoc.getRootElement().getName()); } catch [...]