The SETVERSION procedure sets the version of the DOMDocument.
SETVERSION(doc DOMDocument, v VARCHAR2)
Parameters
doc
Any DOMDocument.
v
The version of the document.
Examples
This example creates an XML DOMDocument, sets the version to 1.0, and converts it to an XMLType object.
DECLARE l_xmltype XMLTYPE; l_domdoc DBMS_XMLDOM.DOMDocument; BEGIN l_domdoc := DBMS_XMLDOM.NEWDOMDOCUMENT(); DBMS_XMLDOM.setversion(l_domdoc, '1.0'); l_xmltype := DBMS_XMLDOM.GETXMLTYPE(l_domdoc); DBMS_OUTPUT.PUT_LINE(l_xmltype.getStringVal()); END;