Oracle® Call Interface Programmer's Guide 10g Release 1 (10.1) Part Number B10779-01 |
|
|
View PDF |
This section describes the XML DB functions.
Function/Page | Purpose |
---|---|
Free an XML context. | |
Initialize an XML context for XML data from the database. |
Free any allocations made by the call to OCIXmlDbInitXmlCtx()
.
void OCIXmlDbFreeXmlCtx ( xmlct *xctx );
The XML context to terminate.
None.
To initialize an XML context for XML data from the database.
xmlctx *OCIXmlDbInitXmlCtx ( OCIEnv *envhp, OCISvcCtx *svchp, OCIError *errhp, ocixmldbparam *params, ub4 num_params );
The OCI environment handle.
The OCI service handle.
The OCI error handle.
The optional possible values in this array are:
The OCI duration. Default value is OCI_DURATION_SESSION.
An error handler which is a user-registered callback of prototype:
void (*err_handler) (sword errcode, (CONST OraText *) errmsg);
The two parameters of err_handler
are:
Number of parameters to be read from params.
If the value of num_params
exceeds the size of array params
, unexpected behavior results.
See Also:
"OCI Support for XML" for a usage example. |
Returns either:
xmlctx
, with error handler and callbacks populated with appropriate values. This is later used for all OCI calls.