oracle - Extract text from CLOB PL/SQL NameSpace -


i trying extract data clob column , see in separate column. query using:

select xmltype(t.detailbericht).extract('//tekst_reden_afwikkeling/text()').getstringval()  ozg_if.mtwk_abcdef t 

the colum t.detailbericht contains clob text following contents:

<ns0:zaak xmlns:ns0="http://www.xxxxx.xx/xxx_xxx_xxxxxxxxxxxx/text_text_v002">     <ns0:code_reden_afwikkeling>d99</ns0:code_reden_afwikkeling>     <ns0:tekst_reden_afwikkeling>volledig betaald</ns0:tekst_reden_afwikkeling>     <ns0:code_koptekst>490</ns0:code_koptekst>     <ns0:omschrijving_koptekst>volledig voldaan.</ns0:omschrijving_koptekst> </ns0:zaak> 

anybody got ideas?

hmm apparently seems work when replace ns0: nothing code using:

xmltype(replace(t.detailbericht,'ns0:','')).extract('//tekst_reden_afwikkeling/text()').getstringval() tekst_reden_afwikkeling 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -