wood burning stoves
The moose likes XML and Related Technologies and the fly likes CLOB to XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "CLOB to XML" Watch "CLOB to XML" New topic


Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
Can some one suggest me how to convert a CLOB to XML representation
Vivek Nidhi
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
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).

blog - InfoQ.com
It is sorta covered in the JavaRanch Style Guide.
subject: CLOB to XML
It's not a secret anymore!