What do you mean "convert a CLOB to XML representation"? Do you want to write a CLOB value inside an XML? Or do you want to save the CLOB value as an XML? In both cases, from CLOB you can obtain the character stream. Once you have this, you can do whatever you want (write it in a CDATA, or put some logic an create an XML based on the CLOB).