http://www.dba-oracle.com/t_format_output_html_xml.htm easy formatting of Oracle output in HTML and XML http://www.dba-oracle.com/t_format_output_html_xml.htm Oracle: dbms_xmlgen.getxml http://www.dba-oracle.com/t_format_output_html_xml.htm