How can I select values from XML in ORACLE SQL?
Let's say I have two XMLs in table "items":
first row and column "intreevalue" data
<change xmlns="http://do.it.com/ch/PLP">
<header>
<op>XDD</op>
</header>
<id>10565</id>
</change>
and second row and column "intreevalue" data
<deactivate xmlns="http://mrlo.com/nnu/XCBouIK">
<header>
<op>XDG</id>
</header>
<id>67544</id>
</deactivate>
I know "EXTRACTVALUE" is depricated. I need values "op" and "id" in one select. I guess if there is no namespace like 'xmlns="http://do.it.com/ch/PLP"' it would be easy. But can I select data like this (example - I know it can't work, just trying to say what i mean)?
select "/*/header/op" op, "/*/id" id from .....
Thanks