【发布时间】:2017-03-23 10:54:00
【问题描述】:
我的 clob 字段中有以下 xml:
<i>7894564</i>
<se>ABC</se>
我正在使用以下查询,但它会产生错误:
select xmltype(clob_field).extract('//se/text()').getStringVal() from tablename
错误是:
ORA-31011: XML parsing failed
ORA-19213: error occurred in XML processing at lines 2
LPX-00245: extra data after end of document
ORA-06512: at "SYS.XMLTYPE", line 272
ORA-06512: at line 1
31011. 00000 - "XML parsing failed"
*Cause: XML parser returned an error while trying to parse the document.
*Action: Check if the document to be parsed is valid.
谁能帮我解决这个问题?提前致谢
【问题讨论】: