我正在尝试解析XML中的数据。我需要kasi标签
SELECT
ID, woId, kasi, XMLNOTIFICATION, XMLPDARESPONSE
FROM
(
SELECT
ID,
CAST( XML2CLOB(xmlquery(
'declare namespace ns2="http://www.it.ibm.com/namespaces/rsl/amm/wo/commonWO"; $XMLNOTIFICATION/ns2:woOut/woOutput/header/woId/text()'
)) AS VARCHAR(100) ) AS WOID,
CAST( XML2CLOB(xmlquery(
'declare namespace ns2="http://www.it.ibm.com/namespaces/rsl/amm/wo/commonWO"; $XMLNOTIFICATION/ns2:woOut/woOutput/woExececutionResults/electricityMeterInstallation/additionalInstallationData/kapiKasi.kasi/text()'
-- /kasi/text()'
)) AS VARCHAR(100) ) AS KASI,
XMLNOTIFICATION, XMLPDARESPONSE
FROM
WOP.BUNDLE_WORK_ORDER
WHERE
XMLNOTIFICATION IS NOT NULL
AND REFERENCEPREFIX = 1
AND REFERENCENUMBER = ('561527801')
)
WHERE
WOID in ('EXT561527801')