Oracle9i XML Database Developer's Guide - Oracle XML DB Release 2 (9.2) Part Number A96620-02 |
|
|
View PDF |
This chapter describes the Oracle XML DB Resource API for Java. It contains the following sections:
Oracle XML DB Resource API for Java operates as follows:
Additionally, you can perform these operations:
XMLType
to access and modify parts of XMLType
objects.save()
method to write changes to the database.Oracle XML DB Resource API for Java includes a set of sub-interfaces that indicate resource type Versioning
information WebDAV.
The API includes interfaces for objects such as workspaces, branches, and baselines (as defined by the WebDAV versioning specification).
Table 17-1 lists the parameters supported by Oracle XML DB Resource API for Java.
Here is an example using SQL, that provides the power of SQL SELECT
potentially using criteria other than path name to find the XMLType
object.
PreparedStatement pst = con.prepareStatement( "SELECT r.RESOLVE_PATH('/companies/oracle') FROM XDB$RESOURCE r"); pst.executeQuery(); XMLType po = (XMLType)pst.getObject(1); Document podoc = (Document) po.getDOM();