Introducing Java DOM and Java Bean APIs for XMLType
Oracle XML DB supports the following Java Application Program Interfaces (APIs):
■ Java Document Object Model (DOM) API for XMLType. This is a generic API for client and server, for both XML schema-based and non- schema-based documents. It is implemented using the Java package oracle.xdb.dom.
To access XMLType data using JDBC use the class oracle.xdb.XMLType.
■ Java Bean API for XMLType. This is a high performance API for the server for XML schema-based documents. It is implemented using Java package oracle.xdb.bean. The Java Bean API for XMLType offers:
■ An optimized memory footprint. Because in Oracle XML DB, XML schema-based documents offer reduced storage requirements, the Java Bean API for XMLType has a highly optimized memory footprint.
■ Fast data retrieval. Because the Java Bean API for XMLType is XML schema-aware, XML data can be retrieved quickly.
Java beans also have the advantage of being programmer-friendly, because the API uses the XML schema names from which the bean was generated. Java Bean API for XMLType supports any form of XML schema.
For XML documents that do not conform to any XML schema, you can use the Java DOM API for XMLType as it can handle any valid XML document.
See Also: Oracle9i XML API Reference - XDK and Oracle XML DB
Post a comment