I need some help as I'm new to dbms_xmldom. I want to write the output every 1000 records to a file, so getting it from the getclobval and writing/appending it to the file.
What should I be looking at to do this? My database is 11g release 1.
Thanks in adavance to any replies I get.
BEGIN
FOR production_rec IN c_production
LOOP
loop_counter := loop_counter + 1;
use dbms_xmldom to process database fields into l_domdoc
............
IF loop_counter = 1000 THEN
l_xmltype := dbms_xmldom.getXmlType(l_domdoc);
dbms_xmldom.freeDocument(l_domdoc);
dbms_output.put_line(l_xmltype.getClobVal);
loop_counter := 0;
instead of dbms_output.put_line i need to output/append the data to a file.
how is this done?
END IF;
END LOOP;
END;