The FREEPARSER procedure is used to release a PARSER handle and the system resources it occupies. After release, do not use the handle anymore to avoid dangling references or resource leaks.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL-compatible mode.
Note
For V4.4.2, this subprogram is available starting with OceanBase Database V4.4.2 BP2.
Syntax
DBMS_XMLPARSER.FREEPARSER (
parser IN DBMS_XMLPARSER.PARSER);
Parameters
Parameters |
Explanation |
|---|---|
| parser | To Be ReleasedDBMS_XMLPARSER.PARSERHandle. |
Return value
No return value.
Usage instructions
If you have obtained a DBMS_XMLDOM.DOMDOCUMENT handle using GETDOCUMENT, you must still explicitly call FREEDOCUMENT to release the document.
Examples
This example releases a parser handle by using the DBMS_XMLPARSER system package:
DECLARE
p DBMS_XMLPARSER.PARSER;
BEGIN
-- Create a parser instance
p := DBMS_XMLPARSER.NEWPARSER;
-- Release the parser handle.
DBMS_XMLPARSER.FREEPARSER(p);
END;
/
