My Oracle Support Banner

Simple Example Using SQLXML JDBC 4.0 XML Data Type (Doc ID 1275888.1)

Last updated on JULY 22, 2021

Applies to:

JDBC - Version to [Release 11.2]
Information in this document applies to any platform.


One of the most important updates in JDBC 4.0 standard is the support for the XML data type, defined by the SQL 2003 standard. Now JDBC offers a mapping interface to support the SQL/XML database data type, that is, java.sql.SQLXML. This new JDBC interface defines Java native bindings for XML, thus making handling of any database XML data easier and more efficient. This how to will give a small demo on how to use the new SQLXML data type in the JDBC driver.

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or
Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.


In order to use JDBC 4.0 you must be using JDK 1.6 and ojdbc6.jar ( which can be downloaded from here


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Pre Steps
 More Information

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.