-
Passing XML string to a stored procedure?
about 4 years ago
-
about 4 years ago
Try once this.
String xml = "<Table1>"+ "<FirstName>" + a + "</FirstName>"+ "<LastName>" + b + "</LastName>" + "</Table1>"; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document details = db.parse(xml); mystmt.setObject("Details", details);
Please let me know if that doesn't work.
-
1 Answer(s)