To Retrieve Unstructured (not schema-based) XML from the Xdb Repository (Doc ID 351746.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.7 and later
Information in this document applies to any platform.
Information in this document applies to any platform.

Goal

If an XML file based on a registered schema is stored in the XDB Repository, the XML content is stored in the table(s) created by the schema regsitration process. However if you want to store data in an XML format that is not described by a schema, how can the data be retrieved again?

The requirement is for a simple function which will return the data, created as a XDB resource, e.g. using DBMS_XDB.createResource(). The data should be returned as XMLType.

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms