Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert CLOB to XMLType ??

250690Sep 6 2002
Hi,
I created a table XML_TAB as

SQL> desc xml_tab;
Name Null? Type
----------------------------------------- -------- ----------
DOCID NUMBER
DTD CLOB
XMLDOC CLOB
VALID NUMBER

and I inserted a record in the table.

Now the file inserted at the column XMLDOC, I want to convert it to XMLType. How can I do that.
Some docs says to user XMLType.createXML function......

But when I did it....................
SQL> select xmltype.createxml(xmldoc) from xml_tab
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00210: expected '<' instead of '<'
Error at line 1
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1


What could be the cause of the problem? Am I doing it in a correct way?

-- Jitendra
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2002
Added on Sep 6 2002
2 comments
972 views