Insert Encoding tag into xml file. <?xml version="1.0"?>
858716Jun 1 2011 — edited Jun 2 2011I am using oracle 10g.
I am using dbms_xmlgen.getxml function to generate xml data for oracle tables. I use utl_file to write data back into xml file.
Oracle is generating the file in the following manner...
<?xml version="1.0"?>
<ROWSET>
<ROW>
<RSLT_ID>1</RSLT_ID>
</ROW>
</ROWSET>
I want to change the following xml header to have encoding information in it as follows...
<?xml version="1.0" encoding = "AL32UTF8"?>
How do I achieve that?
Any suggestions?