【发布时间】:2020-02-08 09:06:03
【问题描述】:
我知道以前有人问过这个问题,但我无法使用我的格式进行猴看猴做
WITH TEST_XML_EXTRACT AS
(
SELECT XMLTYPE (
'<tns:Envelope xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/">
<testLeaf> ValueIWant </testLeaf>
</tns:Envelope>') testField
FROM dual
)
SELECT EXTRACTVALUE(testField,'/testLeaf'), -- doesn't work
EXTRACTVALUE(testField,'/tns'), -- doesn't work
EXTRACTVALUE(testField,'/Envelope'), -- doesn't work
EXTRACTVALUE(testField,'/BIPIBITY') -- doesn't work
FROM TEST_XML_EXTRACT;
它只是返回空白。
我在 Oracle 文档中找不到任何完全相同的示例。
有什么想法吗?
【问题讨论】:
标签: sql xml oracle oracle11g xml-parsing