XML Database (MOSC)

MOSC Banner

Query with XMLNAMESPACES

I had this query which was ok and returns results when interrogating this tag :

<Period>
<from>2024-11-01</from>
</Period>

SELECT
extractvalue(xmltype('<dummy>'
|| column_of_mytable
|| '</dummy>'), '/dummy/Period/from') * 1 AS xdate
FROM
mytable

but with namespace my query is not working

<Period>
<c:from>2024-11-01</c:from>
</Period>

I cannot find the right syntax.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center