Updated on 2024-06-03 GMT+08:00

DBE_XML

Table 1 lists all APIs supported by DBE_XML.
Table 1 DBE_XML parameters

API

Description

DBE_XML.XML_FREE_PARSER

Frees a parser.

DBE_XML.XML_PARSER_GET_DOC

Obtains the parsed document node.

DBE_XML.XML_GET_VALIDATION_MODE

Obtains the validation attribute.

DBE_XML.XML_NEW_PARSER

Creates a parser instance.

DBE_XML.XML_PARSE_BUFFER

Parses the VARCHAR string.

DBE_XML.XML_PARSE_CLOB

Parses the CLOB string.

DBE_XML.XML_SET_VALIDATION_MODE

Sets the validation attribute.

DBE_XML.XML_DOM_APPEND_CHILD

Adds the newchild node to the end of the parent(n) node and returns the newly added node.

DBE_XML.XML_DOM_CREATE_ELEMENT

Returns the DOMElement object with the specified name.

DBE_XML.XML_DOM_CREATE_ELEMENT_NS

Returns the DOMElement object with the specified name and namespace.

DBE_XML.XML_DOM_CREATE_TEXT_NODE

Creates and returns a DOMText object.

DBE_XML.XML_DOM_FREE_DOCUMENT

Frees a specified XML DOM object.

DBE_XML.XML_DOM_FREE_ELEMENT

Frees a specified XML DOM object.

DBE_XML.XML_DOM_FREE_NODE

Frees a DOMNode node.

DBE_XML.XML_DOM_FREE_NODELIST

Frees a DOMNodeList node.

DBE_XML.XML_DOM_GET_ATTRIBUTE

Obtains the attributes of a specified XML DOM object.

DBE_XML.XML_DOM_GET_ATTRIBUTES

Returns the attribute values of a DOMNode node as a map.

DBE_XML.XML_DOM_GET_CHILD_NODES

Converts several subnodes under a node into a node list.

DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME

Obtains the list of specified subnodes of a specified XML DOM object.

DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME_NS

Obtains the list of subnodes in the specified namespace of a specified XML DOM object.

DBE_XML.XML_DOM_GET_DOCUMENT_ELEMENT

Returns the first subnode of the specified document.

DBE_XML.XML_DOM_GET_FIRST_CHILD

Returns the first subnode of a node.

DBE_XML.XML_DOM_GET_LAST_CHILD

Returns the last subnode of a node.

DBE_XML.XML_DOM_GET_LENGTH

Returns the number of nodes based on the content in the node of the specified type.

DBE_XML.XML_DOM_GET_LOCALNAME

Returns the local name of the given object.

DBE_XML.XML_DOM_GET_NAMED_ITEM

Returns the node specified by name.

DBE_XML.XML_DOM_GET_NAMED_ITEM_NS

Returns the node specified by name and namespace.

DBE_XML.XML_DOM_GET_NEXT_SIBLING

Returns the next node of the specified node.

DBE_XML.XML_DOM_GET_NODE_NAME

Returns the name of a node.

DBE_XML.XML_DOM_GET_NODE_TYPE

Returns the type of a node.

DBE_XML.XML_DOM_GET_NODE_VALUE

Returns the value of a node.

DBE_XML.XML_DOM_GET_PARENT_NODE

Returns the parent node of the given node.

DBE_XML.XML_DOM_GET_TAGNAME

Obtains the tag name of a specified XML DOM object.

DBE_XML.XML_DOM_HAS_CHILD_NODES

Checks whether the DOMNode object has any subnode.

DBE_XML.XML_DOM_IMPORT_NODE

Copies a node to another node and mounts the copied node to a specified document.

DBE_XML.XML_DOM_IS_NULL

Checks whether the given object is null.

DBE_XML.XML_DOM_ITEM

Returns the element corresponding to the index in a list or map based on the index.

DBE_XML.XML_DOM_MAKE_ELEMENT

Returns the DOMElement object after conversion.

DBE_XML.XML_DOM_MAKENODE

Converts the given object to the DOMNode type.

DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_EMPTY

Returns a new DOMDocument object.

DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_CLOB

Returns a new DOMDocument instance object created from the specified CLOB type.

DBE_XML.XML_DOM_NEW_DOCUMENT_XMLTYPE

Returns a new DOMDocument instance object created from the specified XMLType type.

DBE_XML.XML_DOM_SET_ATTRIBUTE

Sets the attributes of a specified XML DOM object.

DBE_XML.XML_DOM_SET_CHARSET

Sets the character set for a DOMDocument object.

DBE_XML.XML_DOM_SET_DOCTYPE

Sets the external DTD of a DOMDocument object.

DBE_XML.XML_DOM_SET_NODE_VALUE

Sets the value of a node in the DOMNode object.

DBE_XML.XML_DOM_WRITE_TO_BUFFER_DOC

Writes the given DOMDocument object to the buffer.

DBE_XML.XML_DOM_WRITE_TO_BUFFER_NODE

Writes the given DOMNode object to the buffer.

DBE_XML.XML_DOM_WRITE_TO_CLOB_DOC

Writes the given DOMDocument object to a CLOB.

DBE_XML.XML_DOM_WRITE_TO_CLOB_NODE

Writes the given DOMNode object to a CLOB.

DBE_XML.XML_DOM_WRITE_TO_FILE_DOC

Writes an XML node to a specified file using the database character set.

DBE_XML.XML_DOM_WRITE_TO_FILE_NODE

Writes an XML node to a specified file using the database character set.

DBE_XML.XML_DOM_GET_SESSION_TREE_NUM

Displays the number of DOM trees of all types in the current session.

DBE_XML.XML_DOM_GET_DOC_TREES_INFO

Displays statistics such as the memory usage and number of nodes of the DOM tree of the document type.

DBE_XML.XML_DOM_GET_DETAIL_DOC_TREE_INFO

Displays the number of nodes of each type for a specific document variable.

  • DBE_XML.XML_FREE_PARSER

    Frees a given parser object.

    The stored procedure prototype of DBE_XML.XML_FREE_PARSER is as follows:

    1
    2
    3
    DBE_XML.XML_FREE_PARSER(
    id IN RAW(13))
    returns VOID;
    
    Table 2 DBE_XML.XML_FREE_PARSER parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    Parser object

  • DBE_XML.XML_PARSER_GET_DOC

    Returns the root node of the DOM tree document constructed by the parser.

    The prototype of the DBE_XML.XML_PARSER_GET_DOC function is as follows:

    1
    2
    3
    DBE_XML.XML_PARSER_GET_DOC(
    id IN RAW(13))
    returns RAW(13);
    
    Table 3 DBE_XML.XML_PARSER_GET_DOC parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    Parser object

    • If the DBE_XML.XML_PARSER_GET_DOC function is empty, NULL is returned.
    • If the parser input by the DBE_XML.XML_PARSER_GET_DOC function has not parsed any document, NULL is returned.
  • DBE_XML.XML_GET_VALIDATION_MODE

    Obtains the parsing validation mode of a specified parser. If DTD validation is enabled, TRUE is returned. Otherwise, FALSE is returned.

    The prototype of the DBE_XML.XML_GET_VALIDATION_MODE function is as follows:

    1
    2
    3
    DBE_XML.XML_GET_VALIDATION_MODE(
    id RAW(13))
    returns BOOL;
    
    Table 4 DBE_XML.XML_GET_VALIDATION_MODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    Parser object

  • DBE_XML.XML_NEW_PARSER

    Creates a parser object and returns a new parser instance.

    The prototype of the DBE_XML.XML_NEW_PARSER function is as follows:

    1
    2
    DBE_XML.XML_NEW_PARSER()
    RETURNS RAW(13);
    
  • DBE_XML.XML_PARSE_BUFFER

    Parses XML documents stored in strings.

    The stored procedure prototype of DBE_XML.XML_PARSE_BUFFER is as follows:

    1
    2
    3
    4
    DBE_XML.XML_PARSE_BUFFER(
    id RAW(13),
    xmlstr VARCHAR2)
    RETURNS VOID;
    
    Table 5 DBE_XML.XML_PARSE_BUFFER parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    Parser object

    xmlstr

    VARCHAR2

    IN

    No

    A string that stores XML documents

    • The maximum length of a character string that can be parsed by the xml_parse_buffer function is 32767. If the length exceeds the maximum, an error is reported.
    • Different from the ORA database, this database supports only UTF-8 in terms of character encoding, and version can only be set to 1.0. If versions 1.0 to 1.9 are parsed, a warning appears but the execution is normal. For versions later than 1.9, an error is reported.
    • DTD validation differences:
      • !ATTLIST to type (CHECK|check|Check) "Ch..." reports an error because the default value "Ch..." is not an enumerated value in the brackets. However, the ORA database does not report this error.
      • <!ENTITY baidu "www.baidu.com">...... &Baidu;&writer reports an error because the letters are case sensitive. Baidu cannot correspond to baidu. However, the ORA database does not report this error.
    • Namespace validation difference: Undeclared namespace tags are parsed. However, the ORA database reports an error.
    • Difference in parsing XML predefined entities: &apos; and &quot; are parsed and translated into ' and ". However, predefined entities in database ORA are not translated into characters.
  • DBE_XML.XML_PARSE_CLOB

    Parses XML documents stored in XML_PARSE_CLOB.

    The stored procedure prototype of DBE_XML.XML_PARSE_CLOB is as follows:
    1
    2
    3
    4
    DBE_XML.XML_PARSE_CLOB(
    id IN RAW(13),
    doc IN CLOB)
    returns VOID;
    
    Table 6 DBE_XML.XML_PARSE_CLOB parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    Parser object

    doc

    CLOB

    IN

    No

    A string that stores XML documents

    • xml_parse_clob cannot parse CLOBs larger than 1 GB.
    • Different from the ORA database, this database supports only UTF-8 in terms of character encoding, and version can only be set to 1.0. If versions 1.0 to 1.9 are parsed, a warning appears but the execution is normal. For versions later than 1.9, an error is reported.
    • DTD validation differences:
      • !ATTLIST to type (CHECK|check|Check) "Ch..." reports an error because the default value "Ch..." is not an enumerated value in the brackets. However, the ORA database does not report this error.
      • <!ENTITY baidu "www.baidu.com">...... &Baidu;&writer reports an error because the letters are case sensitive. Baidu cannot correspond to baidu. However, the ORA database does not report this error.
    • Namespace validation difference: Undeclared namespace tags are parsed. However, the ORA database reports an error.
    • Difference in parsing XML predefined entities: &apos; and &quot; are parsed and escaped to ' and ". However, predefined entities in database ORA are not escaped into characters.
  • DBE_XML.XML_SET_VALIDATION_MODE

    Sets the parsing validation mode of a specified parser.

    The stored procedure prototype of DBE_XML.XML_SET_VALIDATION_MODE is as follows:

    1
    2
    3
    4
    DBE_XML.XML_SET_VALIDATION_MODE(
    id RAW(13), 
    validate BOOLEAN)
    returns VOID;
    
    Table 7 DBE_XML.XML_SET_VALIDATION_MODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    Parser object

    validate

    BOOLEAN

    IN

    Yes

    Mode to be set:
    • TRUE: DTD validation is enabled.
    • FALSE: DTD validation is disabled.
    • If the input parameter validate of the DBE_XML.XML_SET_VALIDATION_MODE function is null, the parsing validation mode of the parser is not changed.
    • By default, the DTD validation is enabled during parser initialization.
  • DBE_XML.XML_DOM_APPEND_CHILD

    Adds the newchild node to the end of the parent(n) node and returns the newly added node.

    The stored procedure prototype of DBE_XML.XML_DOM_APPEND_CHILD is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_APPEND_CHILD(
        parentId IN RAW(13),
        childId IN RAW(13)
    )
    RETURNS RAW(13);
    
    Table 8 DBE_XML.XML_DOM_APPEND_CHILD parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    parentId

    RAW(13)

    IN

    No

    XML DOM object

    childId

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_CREATE_ELEMENT

    Returns the DOMElement object with the specified name.

    The prototype of the DBE_XML.XML_DOM_CREATE_ELEMENT function is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_CREATE_ELEMENT(
        id IN RAW(13),
        tagname IN VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 9 DBE_XML.XML_DOM_CREATE_ELEMENT parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    tagname

    VARCHAR2

    IN

    No

    Name of the new DOMElement object

  • DBE_XML.XML_DOM_CREATE_ELEMENT_NS

    Returns the DOMElement object with the specified name and namespace.

    The prototype of the DBE_XML.XML_DOM_CREATE_ELEMENT_NS function is as follows:

    1
    2
    3
    4
    5
    6
    DBE_XML.XML_DOM_CREATE_ELEMENT_NS(
        id IN RAW(13),
        tagname IN VARCHAR2,
        ns IN VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 10 DBE_XML.XML_DOM_CREATE_ELEMENT_NS parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    tagname

    VARCHAR2

    IN

    No

    Name of the new DOMElement object

    ns

    VARCHAR2

    IN

    No

    Namespace

  • DBE_XML.XML_DOM_CREATE_TEXT_NODE

    Creates and returns a DOMText object.

    The prototype of the DBE_XML.XML_DOM_CREATE_TEXT_NODE function is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_CREATE_TEXT_NODE(
        id IN RAW(13),
        data IN VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 11 DBE_XML.XML_DOM_CREATE_TEXT_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    data

    VARCHAR2

    IN

    No

    Content of the new DOMText node

  • DBE_XML.XML_DOM_FREE_DOCUMENT

    Frees a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_FREE_DOCUMENT is as follows:
    1
    2
    3
    4
    DBE_XML.XML_DOM_FREE_DOCUMENT(
        id RAW(13)
    )
    RETURNS VOID;
    
    Table 12 DBE_XML.XML_DOM_FREE_DOCUMENT parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_FREE_ELEMENT

    Frees a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_FREE_ELEMENT is as follows:

    DBE_XML.XML_DOM_FREE_ELEMENT (
        id RAW(13)
    )
    RETURNS VOID;
    Table 13 DBE_XML.XML_DOM_FREE_ELEMENT parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_FREE_NODE

    Frees a DOMNode node.

    The prototype of the DBE_XML.XML_DOM_FREE_NODE function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_FREE_NODE (
        id RAW(13)
    )
    RETURNS VOID;
    
    Table 14 DBE_XML.XML_DOM_FREE_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_FREE_NODELIST

    Frees a DOMNodeList node.

    The stored procedure prototype of DBE_XML.XML_DOM_FREE_NODELIST is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_FREE_NODELIST(
        id IN RAW(13)
        
    )
    RETURNS VOID
    
    Table 15 DBE_XML.XML_DOM_FREE_NODELIST parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_ATTRIBUTE

    Obtains the attributes of a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_ATTRIBUTE is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_GET_ATTRIBUTE (
        docid   IN  RAW(13),
        name    IN  VARCHAR2
    )
    RETURNS VARCHAR2;
    
    Table 16 DBE_XML.XML_DOM_GET_ATTRIBUTE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    docid

    RAW(13)

    IN

    No

    XML DOM object

    name

    VARCHAR2

    IN

    No

    String

  • DBE_XML.XML_DOM_GET_ATTRIBUTES

    Returns the attribute values of a DOMNode node as a map.

    The prototype of the DBE_XML.XML_DOM_GET_ATTRIBUTES function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_ATTRIBUTES (
        id RAW(13)
    )
    RETURNS RAW(13);
    
    Table 17 DBE_XML.XML_DOM_GET_ATTRIBUTES parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_CHILD_NODES

    Converts several subnodes under a node into a node list.

    The prototype of the DBE_XML.XML_DOM_GET_CHILD_NODES function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_CHILD_NODES(
        id IN RAW(13)
    )
    RETURNS RAW(13);
    
    Table 18 DBE_XML.XML_DOM_GET_CHILD_NODES parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME

    Obtains the list of specified subnodes of a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME (
        docid   IN  RAW(13),
        name    IN  VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 19 DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    docid

    RAW(13)

    IN

    No

    XML DOM object

    name

    VARCHAR2

    IN

    No

    String

  • DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME_NS

    Obtains the list of subnodes in the specified namespace of a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME_NS is as follows:

    1
    2
    3
    4
    5
    6
    DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME_NS (
        docid   IN  RAW(13),
        name    IN  VARCHAR2,
        ns      IN  VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 20 DBE_XML.XML_DOM_GET_CHILDREN_BY_TAGNAME_NS parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    docid

    RAW(13)

    IN

    No

    XML DOM object

    name

    VARCHAR2

    IN

    No

    String

    ns

    VARCHAR2

    IN

    Yes

    String

  • DBE_XML.XML_DOM_GET_DOCUMENT_ELEMENT

    Returns the first subnode of the specified document.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_DOCUMENT_ELEMENT is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_DOCUMENT_ELEMENT(
        id  RAW(13)
    )
    RETURNS RAW(13);
    
    Table 21 DBE_XML.XML_DOM_GET_DOCUMENT_ELEMENT parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_FIRST_CHILD

    Returns the first subnode of a node.

    The prototype of the DBE_XML.XML_DOM_GET_FIRST_CHILD function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_FIRST_CHILD(
        id IN RAW(13)
    )
    RETURNS RAW(13);
    
    Table 22 DBE_XML.XML_DOM_GET_FIRST_CHILD parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_LAST_CHILD

    Returns the last subnode of a node.

    The prototype of the DBE_XML.XML_DOM_GET_LAST_CHILD function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_LAST_CHILD(
        id IN RAW(13)
    )
    RETURNS RAW(13);
    
    Table 23 DBE_XML.XML_DOM_GET_LAST_CHILD parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_LENGTH

    Returns the number of nodes based on the content in the node of the specified type.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_LENGTH is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_LENGTH(
        id RAW(13)
    )
    RETURNS VOID;
    
    Table 24 DBE_XML.XML_DOM_GET_LENGTH parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_GET_LOCALNAME

    Returns the local name of the given object.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_LOCALNAME is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_LOCALNAME (
        id  RAW(13)
    )
    RETURNS VARCHAR2;
    
    Table 25 DBE_XML.XML_DOM_GET_LOCALNAME parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_GET_NAMED_ITEM

    Returns the node specified by name.

    The prototype of the DBE_XML.XML_DOM_GET_NAMED_ITEM function is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_GET_NAMED_ITEM(
        id IN RAW(13),
        nodeName IN VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 26 DBE_XML.XML_DOM_GET_NAMED_ITEM parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    nodeName

    VARCHAR2

    IN

    No

    Name of the element to be retrieved

  • DBE_XML.XML_DOM_GET_NAMED_ITEM_NS

    Returns the node specified by name and namespace.

    The prototype of the DBE_XML.XML_DOM_GET_NAMED_ITEM_NS function is as follows:

    1
    2
    3
    4
    5
    6
    DBE_XML.XML_DOM_GET_NAMED_ITEM_NS(
        id  RAW(13),
        nodeName IN VARCHAR2,
        ns IN VARCHAR2
    )
    RETURNS RAW(13);
    
    Table 27 DBE_XML.XML_DOM_GET_NAMED_ITEM_NS parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    nodeName

    VARCHAR2

    IN

    No

    Name of the element to be retrieved

    ns

    VARCHAR2

    IN

    Yes

    Namespace

  • DBE_XML.XML_DOM_GET_NEXT_SIBLING

    Returns the next node of the specified node.

    The prototype of the DBE_XML.XML_DOM_GET_NEXT_SIBLING function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_NEXT_SIBLING(
        id IN RAW(13)
    )
    RETURNS RAW(13);
    
    Table 28 DBE_XML.XML_DOM_GET_NEXT_SIBLING parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_NODE_NAME

    Returns the name of a node.

    The prototype of the DBE_XML.XML_DOM_GET_NODE_NAME function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_NODE_NAME(
        id IN RAW(13)
    )
    RETURNS VARCHAR2;
    
    Table 29 DBE_XML.XML_DOM_GET_NODE_NAME parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_NODE_TYPE

    Returns the type of a node.

    The prototype of the DBE_XML.XML_DOM_GET_NODE_TYPE function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_NODE_TYPE(
        id IN RAW(13)
    )
    RETURNS INTEGER;
    
    Table 30 DBE_XML.XML_DOM_GET_NODE_TYPE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_GET_NODE_VALUE

    Returns the value of a node.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_NODE_VALUE is as follows:

    1
    2
    3
    DBE_XML.XML_DOM_GET_NODE_VALUE(
    id IN RAW(13))
    RETURNS VARCHAR2;
    
    Table 31 DBE_XML.XML_DOM_GET_NODE_VALUE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_GET_PARENT_NODE

    Returns the parent node of the given node.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_PARENT_NODE is as follows:

    1
    2
    3
    DBE_XML.XML_DOM_GET_PARENT_NODE(
    id IN RAW(13))
    RETURNS RAW(13);
    
    Table 32 DBE_XML.XML_DOM_GET_PARENT_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_GET_TAGNAME

    Obtains the tag name of a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_GET_TAGNAME is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_GET_TAGNAME (
        docid RAW(13)
    )
    RETURNS VARCHAR2;
    
    Table 33 DBE_XML.XML_DOM_GET_TAGNAME parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    docid

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_HAS_CHILD_NODES

    Checks whether the DOMNode object has any subnode.

    The stored procedure prototype of DBE_XML.XML_DOM_HAS_CHILD_NODES is as follows:

    1
    2
    3
    DBE_XML.XML_DOM_HAS_CHILD_NODES(
    id IN RAW(13))
    RETURNS BOOLEAN
    
    Table 34 DBE_XML.XML_DOM_HAS_CHILD_NODES parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_IMPORT_NODE

    Copies a node to another node and mounts the copied node to a specified document. If the type of the copied node does not belong to the 12 types specified by constants of XML DOM, an exception indicating that the type is not supported is thrown.

    The prototype of the DBE_XML.XML_DOM_IMPORT_NODE function is as follows:

    1
    2
    3
    4
    5
    6
    DBE_XML.XML_DOM_IMPORT_NODE(
        doc_id IN RAW(13),
        node_id IN RAW(13),
        deep IN BOOLEAN
    )
    RETURNS RAW(13);
    
    Table 35 DBE_XML.XML_DOM_IMPORT_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    doc_id

    RAW(13)

    IN

    No

    Document to which the node is mounted

    node_id

    RAW(13)

    IN

    No

    Node to be imported

    deep

    BOOLEAN

    IN

    No

    Specifies whether to perform recursive import.
    • If the value is TRUE, the node and all its subnodes are imported.
    • If the value is FALSE, the node itself is imported.
  • DBE_XML.XML_DOM_IS_NULL

    Checks whether the given object is null. If yes, TRUE is returned. If no, FALSE is returned.

    The prototype of the DBE_XML.XML_DOM_IS_NULL function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_IS_NULL (
        id  RAW(13)
    )
    RETURNS BOOLEAN;
    
    Table 36 DBE_XML.XML_DOM_IS_NULL parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_ITEM

    Returns the element corresponding to the index in a list or map based on the index.

    The prototype of the DBE_XML.XML_DOM_ITEM function is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_ITEM (
        id IN RAW(13),
        index IN INTEGER
    )
    RETURNS RAW(13);
    
    Table 37 DBE_XML.XML_DOM_ITEM parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    index

    INTEGER

    IN

    No

    Index of the element to be retrieved

  • DBE_XML.XML_DOM_MAKE_ELEMENT

    Returns the DOMElement object after conversion.

    The stored procedure prototype of DBE_XML.XML_DOM_MAKE_ELEMENT is as follows:

    1
    2
    3
    DBE_XML.XML_DOM_MAKE_ELEMENT(
    id IN RAW(13))
    RETURNS RAW(13)
    
    Table 38 DBE_XML.XML_DOM_MAKE_ELEMENT parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

  • DBE_XML.XML_DOM_MAKENODE

    Converts the given object to the DOMNode type.

    The stored procedure prototype of DBE_XML.XML_DOM_MAKENODE is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_MAKENODE(
       id    RAW(13)
    )
    RETURNS DOMNODE;
    
    Table 39 DBE_XML.XML_DOM_MAKENODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_EMPTY

    Returns a new DOMDocument object.

    The prototype of the DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_EMPTY function is as follows:

    1
    2
    DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_EMPTY()
    RETURNS RAW(13);
    
  • DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_CLOB

    Returns a new DOMDocument instance object created from the specified CLOB type.

    The prototype of the DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_CLOB function is:

    1
    2
    3
    4
    DBE_XML.XML_DOM_NEW_DOM_DOCUMENT_CLOB(
        content IN  CLOB
    )
    RETURNS RAW(13);
    
    Table 40 xml_dom_new_dom_document_clob parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    content

    CLOB

    IN

    No

    Specified CLOB type

  • DBE_XML.XML_DOM_NEW_DOCUMENT_XMLTYPE

    Returns a new DOMDocument instance object created from the specified XMLType type.

    The prototype of the DBE_XML.XML_DOM_NEW_DOCUMENT_XMLTYPE function is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_NEW_DOCUMENT_XMLTYPE(
        content IN  CLOB
    )
    RETURNS RAW(13);
    
    Table 41 DBE_XML.XML_DOM_NEW_DOCUMENT_XMLTYPE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    content

    CLOB

    IN

    No

    Specified CLOB type

  • DBE_XML.XML_DOM_SET_ATTRIBUTE

    Sets the attributes of a specified XML DOM object.

    The stored procedure prototype of DBE_XML.XML_DOM_SET_ATTRIBUTE is as follows:

    1
    2
    3
    4
    5
    6
    DBE_XML.XML_DOM_SET_ATTRIBUTE(
        docid   IN  RAW(13),
        name    IN  VARCHAR2,
        value   IN  VARCHAR2
    )
    RETURNS void;
    
    Table 42 DBE_XML.XML_DOM_SET_ATTRIBUTE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    name

    VARCHAR2

    IN

    No

    String

    value

    VARCHAR2

    IN

    No

    String

  • DBE_XML.XML_DOM_SET_CHARSET

    Sets the character set for a DOMDocument object.

    The prototype of the DBE_XML.XML_DOM_SET_CHARSET function is as follows:

    1
    2
    3
    4
    5
    DBE_XML.XML_DOM_SET_CHARSET(
        id      IN RAW(13),
        charset IN VARCHAR2
    )
    RETURNS void;
    
    Table 43 DBE_XML.XML_DOM_SET_CHARSET parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    charset

    VARCHAR2

    IN

    No

    Character set

  • DBE_XML.XML_DOM_SET_DOCTYPE

    Sets the external DTD of a DOMDocument object.

    The prototype of the DBE_XML.XML_DOM_SET_DOCTYPE function is as follows:

    1
    2
    3
    4
    5
    6
    7
    DBE_XML.XML_DOM_SET_DOCTYPE(
        id          IN  RAW(13),
        dtd_name    IN  VARCHAR2,
        system_id   IN  VARCHAR2,
        public_id   IN  VARCHAR2
    )
    RETURNS void;
    
    Table 44 DBE_XML.XML_DOM_SET_DOCTYPE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    dtd_name

    VARCHAR2

    IN

    No

    Name of the DOCType to be initialized

    system_id

    VARCHAR2

    IN

    No

    ID of the system whose DOCType needs to be initialized

    public_id

    VARCHAR2

    IN

    No

    Public ID of the DOCType to be initialized

  • DBE_XML.XML_DOM_SET_NODE_VALUE

    Sets the value of a node in the DOMNode object.

    The stored procedure prototype of DBE_XML.XML_DOM_SET_NODE_VALUE is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_SET_NODE_VALUE(
    id IN RAW(13),
    node_value IN VARCHAR2)
    RETURNS VOID
    
    Table 45 DBE_XML.XML_DOM_SET_NODE_VALUE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    node_value

    VARCHAR2

    IN

    No

    String to be set in the DOMNode object

  • DBE_XML.XML_DOM_WRITE_TO_BUFFER_DOC

    Writes the given DOMDocument object to the buffer.

    The stored procedure prototype of DBE_XML.XML_DOM_WRITE_TO_BUFFER_DOC is as follows:

    1
    2
    3
    DBE_XML.XML_DOM_WRITE_TO_BUFFER_DOC(
    id IN RAW(13))
    RETURNS VARCHAR2;
    
    Table 46 DBE_XML.XML_DOM_WRITE_TO_BUFFER_DOC parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_WRITE_TO_BUFFER_NODE

    Writes the given DOMNode object to the buffer.

    The stored procedure prototype of DBE_XML.XML_DOM_WRITE_TO_BUFFER_NODE is as follows:

    1
    2
    3
    DBE_XML.XML_DOM_WRITE_TO_BUFFER_NODE(
    id IN RAW(13))
    RETURNS VARCHAR2;
    
    Table 47 DBE_XML.XML_DOM_WRITE_TO_BUFFER_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_WRITE_TO_CLOB_DOC

    Writes the given DOMDocument object to a CLOB.

    The stored procedure prototype of DBE_XML.XML_DOM_WRITE_TO_CLOB_DOC is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_WRITE_TO_CLOB_DOC(
        id IN RAW(13)
    )
    RETURNS VARCHAR2;
    
    Table 48 DBE_XML.XML_DOM_WRITE_TO_CLOB_DOC parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_WRITE_TO_CLOB_NODE

    Writes the given DOMNode object to a CLOB.

    The stored procedure prototype of DBE_XML.XML_DOM_WRITE_TO_CLOB_NODE is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_WRITE_TO_CLOB_NODE(
        id          IN  RAW(13)
    )
    RETURNS CLOB;
    
    Table 49 DBE_XML.XML_DOM_WRITE_TO_CLOB_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

  • DBE_XML.XML_DOM_WRITE_TO_FILE_DOC

    Writes an XML node to a specified file using the database character set.

    The stored procedure prototype of DBE_XML.XML_DOM_WRITE_TO_FILE_DOC is as follows:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    DBE_XML.XML_DOM_WRITE_TO_FILE_DOC(
    id IN  RAW(13),
    file_dir IN  VARCHAR2)
    RETURNS VOID
    
    DBE_XML.XML_DOM_WRITE_TO_FILE_DOC(
    id IN  RAW(13),
    file_dir IN  VARCHAR2,
    charset  IN  VARCHAR2)
    RETURNS VOID PACKAGE
    
    Table 50 DBE_XML.XML_DOM_WRITE_TO_FILE_DOC parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    Yes

    XML DOM object

    file_dir

    VARCHAR2

    IN

    No

    File to be written

    charset

    VARCHAR2

    IN

    No

    Specified character set

  • DBE_XML.XML_DOM_WRITE_TO_FILE_NODE

    Writes an XML node to a specified file using the database character set.

    The stored procedure prototype of DBE_XML.XML_DOM_WRITE_TO_FILE_NODE is as follows:

    1
    2
    3
    4
    DBE_XML.XML_DOM_WRITE_TO_FILE_NODE(
    id IN  RAW(13),
    filename IN  VARCHAR2)
    RETURNS VOID
    
    Table 51 DBE_XML.XML_DOM_WRITE_TO_FILE_NODE parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object

    filename

    VARCHAR2

    IN

    No

    Specified file address

  • DBE_XML.XML_DOM_GET_SESSION_TREE_NUM

    Queries the number of DOM trees of all types in the current session.

    The prototype of the DBE_XML.XML_DOM_GET_SESSION_TREE_NUM function is as follows:

    1
    2
    DBE_XML.XML_DOM_GET_SESSION_TREE_NUM()
    RETURNS INTEGER
    
  • DBE_XML.XML_DOM_GET_DOC_TREES_INFO

    Queries the DOM tree information of the document type in the current session, such as the memory usage.

    The prototype of the DBE_XML.XML_DOM_GET_DOC_TREES_INFO function is as follows:

    1
    2
    DBE_XML.XML_DOM_GET_DOC_TREES_INFO()
    RETURNS VARCHAR2
    
  • DBE_XML.XML_DOM_GET_DETAIL_DOC_TREE_INFO

    Queries the number of subnodes of each type in the transferred document.

    The prototype of the DBE_XML.XML_DOM_GET_DETAIL_DOC_TREE_INFO function is as follows:

    1
    2
    3
    dbe_xml.xml_dom_get_detail_doc_tree_info(
    id IN  RAW(13))
    RETURNS VARCHAR2
    
    Table 52 DBE_XML.XML_DOM_GET_DETAIL_DOC_TREE_INFO parameters

    Parameter

    Type

    Input/Output Parameter

    Can Be Empty

    Description

    id

    RAW(13)

    IN

    No

    XML DOM object