DBMS_XMLDOM v17
The DBMS_XMLDOM
package implements Document Object Model (DOM) and is used to create DOM documents from scratch or from an XML document.
EDB Postgres Advanced Server's implementation of DBMS_XMLDOM
is a partial implementation when compared to Oracle's version. Only the functions and procedures listed in the tables that follow are supported.
Types
The DBMS_XMLDOM
package implements the following types.
Type name | Description |
---|---|
DOMNode | It implements the DOM Node interface. |
DOMNodeList | It implements the DOM NodeList interface. |
DOMElement | It implements the DOM Element interface. |
DOMText | It implements the DOM Text interface. |
DOMDocument | It implements the DOM Document interface. |
Subprograms
This table lists the subprograms available with the DBMS_XMLDOM
package.
Subprogram | Type | Return type | Description |
---|---|---|---|
APPENDCHILD | Function | DOMNode | Appends a new child to the node. |
CREATEELEMENT | Function | DOMElement | Creates an element. |
CREATETEXTNODE | Function | DOMText | Creates a text node. |
FREEDOCUMENT | Procedure | N/A | Frees the resources associated with the DOMDocument. |
GETATTRIBUTE | Function | DOMElement | Retrieves the attribute value given to an attribute name and returns VARCHAR2. |
GETCHILDNODES | Function | DOMNodeList | Retrieves the children of the node. |
GETFIRSTCHILD | Function | DOMNode | Retrieves the first child of the node. |
GETLENGTH | Function | PLS_INTEGER | Retrieves the number of items in the given DOMNodeList. |
GETNODENAME | Function | VARCHAR2 | Retrieves the name of the node. |
GETNODEVALUE | Function | VARCHAR2 | Retrieves the value of the node. |
GETXMLTYPE | Function | XMLTYPE | Converts DOMDocument to XMLType and returns it. |
ITEM | Function | DOMNode | Retrieves the item from the given index in the NODELIST. |
MAKEELEMENT | Function | DOMElement | Casts the node to a DOMElement. |
MAKENODE | Function | DOMNode | Casts the attribute to a node. |
NEWDOMDOCUMENT | Function | DOMDocument | Creates a document. |
SETATTRIBUTE | Procedure | N/A | Sets the attribute value of a DOMElement. |
SETVERSION | Procedure | N/A | Sets the version of the document. |
- On this page
- Types
- Subprograms