SQL> SQL> declare 2 indoc VARCHAR2(2000); 3 indomdoc dbms_xmldom.domdocument; 4 innode dbms_xmldom.domnode; 5 myParser dbms_xmlparser.Parser; 6 begin 7 indoc := ' Scott '; 8 myParser := dbms_xmlparser.newParser; 9 dbms_xmlparser.parseBuffer(myParser, indoc); 10 indomdoc := dbms_xmlparser.getDocument(myParser); 11 innode := dbms_xmldom.makeNode(indomdoc); 12 -- DOM APIs can be used here 13 end; 14 / PL/SQL procedure successfully completed. SQL> SQL> spool off