0

I have a table say SCOTT.DEPT and I want to convert it into an XML document. Is there anyway to accomplish this task?

Kind Regards,

1 Answer 1

0

The easiest way to do this is:

select dbms_xmlgen.getxml( 'select * from dept') as xml 
from dual;

There are other way more complicated ways of achieving similar results, but the answer would be significantly longer!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.