select c.number,
       xmlelement ( name "product",
                    xmlattributes (
                      c.dept as "dept",
                      c.name as "prodname",
                   ) ) as "product_as_xml"
from catalog c;