Declare your desired directory:
Use dbms_xslprocessor to write XMLType column to file:
create or replace DIRECTORY XMLDIR AS 'C:\tmp';
Use dbms_xslprocessor to write XMLType column to file:
BEGIN for cur in (select XML_COLUMN from YOUR_TABLE) loop dbms_xslprocessor.clob2file(cur.XML_COLUMN.getClobVal(), 'XMLDIR', 'NAME.xml'); end loop; END; /
first I put some tag manually then I append same xml data from dbms_xslprocessor.clob2file but some data has loss , here I can Wright data from dbms_xslprocessor.clob2file in append mode
ReplyDelete