This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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 -
rocket mass heater kickstarter
subject: CLOB to XML