I have a problem constructing a XPath-Statement...
That's my XML:
I am trying to get just the Nodename of the "wantedNodeName"-Node (the last node under Data_ITEM).
Data_ITEM/child::*[position()=last()] gets me the <wantedNodeName> and its child-elements (this works in PL/SQL 10g).
In some XPath-Editors and 11g the following statement returns the NodeName "wantedNodeName":
But when I try to run this statement in 10g I'm getting:
LPX-00601: Invalid token in statement
I found out, that the last statement (.../name()) is working under Oracle v11g. But I need it in Oracle v10g.
Do you have any ideas for a workaround to retrieve the nodename as text?
thanks in advance!