The GETNODEVALUE function provides the value of the node.
GETNODEVALUE(n DOMNode) RETURN VARCHAR2
Parameters
n
DOMNode to provide.
Examples
This example creates a DOMDocument named l_domdoc and a text node with the tag name Depts list. It then outputs the text node value it set before in XML.
DECLARE l_domdoc DBMS_XMLDOM.DOMDocument; l_name_text DBMS_XMLDOM.DOMText; BEGIN l_domdoc := DBMS_XMLDOM.NEWDOMDOCUMENT; l_name_text := DBMS_XMLDOM.CREATETEXTNODE(l_domdoc, 'Depts list' ); dbms_output.put_line(DBMS_XMLDOM.GETNODEVALUE(DBMS_XMLDOM.MAKENODE(l_name_text))); END;