We are using dbms_xmlgen.getxml utility to generate xml using sql queries which fetches data from almost 10-15 related tables.
By default, date format is getting generated in dd-MMM-yy
format. Is there any way we can set dateformat in dbms_xmlgen.getxml utility.
Notes -
- It is not feasible to use alter session nls_date_format from oracle user who calls this procedure.
- Also, We want to avoid using to_date function for each and every field since data is getting fetched from almost 10-15 related tables and it can degrade performance to use to_date for almost 50 date fields.
- dbms_xmlgen.getxml was preferred as it is highly perfomant than other comparable packages.
Thanks.