How to convert a String data type to XML format in Java? -
i working on web application , values capture form passed stored procedure. now, 1 of parameters of stored procedure accepts xml string. parameter called "detailold" , have no clue how convert string values form xml string. can please me out? @override protected void dopost(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { // processrequest(request, response); printwriter out1 = response.getwriter(); out1.println("hey"); try { // processrequest(request, response); out1.println("servlet "); class.forname("com.microsoft.sqlserver.jdbc.sqlserverdriver"); } catch (classnotfoundexception ex) { logger.getlogger(connectioncheck.class.getname()).log(level.severe, null, ex); } connection conn = null; preparedstatement mystmt = null; int num = -1; ...