This example returns an XML document that is the duplicate of the input XML document.
REPLACE PROCEDURE dupXML(IN xml_in XML, OUT xml_out XML) LANGUAGE JAVA NO SQL PARAMETER STYLE JAVA EXTERNAL NAME 'UDF_JAR:UserDefinedFunctions.dupXML(java.sql.SQLXML, java.sql.SQLXML)'; public static void dupXML(java.sql.SQLXML xml_in, java.sql.SQLXML xml_out) throws SQLException { ... }