I have a table in Postgresql
DROP TABLE xml_docs; CREATE TABLE xml_docs( id serial PRIMARY KEY, cad_number character(50), gkuzu_name character(50), gkuzu xm
Instead of rewriting the insert statement using PostgreSQL-proprietary syntax, you could use JDBC 4 SQLXML:
String xml = xml_gkuzu.toString(); SQLXML sqlxml = connection.createSQLXML(); sqlxml.setString(xml); stmt.setSQLXML(3, sqlxml);