xix
Creating XML Schema-Based XMLType Views using SQL/XML Publishing Functions.... 19-4
Using Namespaces with SQL/XML Publishing Functions............................................... 19-7
Creating XML Schema-Based XMLType Views using Object Types or Object Views ....... 19-11
Creating XMLType Employee View, with Nested Department Information............... 19-11
Step 1. Create Object Types .......................................................................................... 19-12
Step 2. Create and Register XML Schema emp_complex.xsd .................................. 19-12
Step 3a. Create XMLType View emp_xml using Object Type emp_t..................... 19-14
Step 3b. Create XMLType View emp_xml using Object View emp_v ................... 19-14
Creating XMLType Department View, with Nested Employee Information............... 19-14
Step 1. Create Object Types .......................................................................................... 19-14
Step 2. Register XML Schema dept_complex.xsd ...................................................... 19-15
Step 3a. Create XMLType View dept_xml using Object Type dept_t .................... 19-16
Step 3b. Create XMLType View dept_xml using Relational Data Directly ........... 19-16
Creating XMLType Views from XMLType Tables......................................................................... 19-17
Referencing XMLType View Objects using SQL Function REF ................................................ 19-18
DML (Data Manipulation Language) on XMLType Views......................................................... 19-18
20 Accessing Data Through URIs
Overview of Oracle XML DB URL Features .................................................................................... 20-1
URIs and URLs ...................................................................................................................................... 20-1
URIType and its Subtypes.................................................................................................................. 20-2
DBUris and XDBUris – What For?................................................................................................ 20-3
URIType Methods........................................................................................................................... 20-4
HTTPURIType PL/SQL Method GETCONTENTTYPE() ................................................. 20-5
DBURIType PL/SQL Method GETCONTENTTYPE() ...................................................... 20-5
DBURIType PL/SQL Method GETCLOB() ......................................................................... 20-6
DBURIType PL/SQL Method GETBLOB().......................................................................... 20-6
Accessing Data using URIType Instances ........................................................................................ 20-6
XDBUris: Pointers to Repository Resources .................................................................................. 20-10
XDBUri URI Syntax ...................................................................................................................... 20-10
XDBUri Examples ......................................................................................................................... 20-10
DBUris: Pointers to Database Data.................................................................................................. 20-12
Viewing the Database as XML Data........................................................................................... 20-12
DBUri URI Syntax ......................................................................................................................... 20-14
DBUris are Scoped to a Database and Session.......................................................................... 20-15
DBUri Examples............................................................................................................................ 20-16
Targeting a Table.................................................................................................................... 20-16
Targeting a Row in a Table................................................................................................... 20-17
Targeting a Column............................................................................................................... 20-17
Retrieving the Text Value of a Column .............................................................................. 20-18
Targeting a Collection ........................................................................................................... 20-19
Creating New Subtypes of URIType using Package URIFACTORY ....................................... 20-20
Registering New URIType Subtypes with Package URIFACTORY ..................................... 20-20
SYS_DBURIGEN SQL Function ...................................................................................................... 20-22
Rules for Passing Columns or Object Attributes to SYS_DBURIGEN.................................. 20-23
SYS_DBURIGEN SQL Function: Examples............................................................................... 20-24
Returning Partial Results...................................................................................................... 20-24