ps.setCharacterStream(index, reader);
}
}
private static void bindXmlDocument(@NotNull PreparedStatement ps, int index, @NotNull Document doc) throws SQLException {
SQLXML sqlxml = ps.getConnection().createSQLXML();
// TODO: arrange for the object to be freed after the PreparedStatement has been executed
sqlxml.setResult(DOMResult.class).setNode(doc);
ps.setSQLXML(index, sqlxml);
}