My Oracle Support Banner

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

Last updated on AUGUST 09, 2023

Applies to:

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

Goal

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 11.2.0.2 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 (11.2.0.2) which can be downloaded from here
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html

Solution

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
Goal
Solution
 Pre Steps
 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.