Oracle version 11g. I have a working SQL query in a PL/SQL procedure. What is the easiest way to take this query and output XML, either specifying the element names, or taking them from the query columns? I'm confused about whether to use DBMS_XMLGEN, XMLQuery or SQLX. What is the canonical way of doing this in Oracle?
Thanks