Suppose you have an XML file (stored, for example, in an Oracle table, which also has a CLOB column):
<ALFA>
<BETA>0123</BETA>
<GAMMA>2345</GAMMA>
<DELTA>
<EPSILON>3</EPSILON>
</DELTA>
</ALFA>
How can I create an output list of all possible paths?
/ALFA/BETA/text()
/ALFA/GAMMA/text()
/ALFA/DELTA/EPSILON/text()
My need is this: I have to SELECT a lot of information from long XML, and I need to use XMLEXTRACT with all possible paths, so I would like to know if it is possible to "dbms_output.put_line" them automatically in a path.
I need a solution that does not depend on the name of the tags.
Assume the XML is well-formed.
Thank you in advance for your kind help.
How can I continue if the Oracle Java Extension has not been installed and I get the following error?
ORA-19112: error raised during evaluation:
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.DBMS_XQUERYINT' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Please assume that I am not a DBA, and DBAs do not allow the installation of Oracle Java Extension.