I have a CLOB column in my database which has an XML data. I retrieve that data and store it in a String variable(It is in XML format only). Now I need to PARSE that String using DOM parser. But before that, I need to do type conversion from String to XML. Is that possible? If I directly pass the String it gives me Exception and does not treat the String as XML.
NOTE: However if I write the string into a file and save it as a "file.xml" then it parses the xml file.
How to type convert String to XML? So that I can directly pass the string to the parser.