This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
You haven't told us what error you're getting. If the error page doesn't include a stack trace, have you looked in catalina.out, and theother log files, for stack traces? Let us know what the actual error is, and maybe we can help. Otherwise, we're just fumbling around here -- there's nothing wrong with the code intrinsically, it's just a question of whether it does what you want it to do.
Note that appending to an existing XML file is just going to give you a broken XML file, by the way.
javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471) at org.apache.jsp.memberdisplayWithDom$jsp._jspService(memberdisplayWithDom$jsp.java:542) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)