Hi,
1.One way of achieving this is in JSP u save the XML file to some path and in the servlet read the XML file from that path.
2.Else use this approach
In JSP
StringBuffer buff = new StringBuffer();
buff.append("<XML version=1.0>");
buff.append("<NAME>aaa</NAME>");
buff.append("</XML>");
<input type="hidden" name="xml" value = "<%=buff.toString()%>">
Post the JSP request to a servlet
In the servlet
String s = request.getParamter("xml");
Then use it..
Cheers
Geeta