hot to parse xml using xpath in pl/sql

so far i had been using dbms_lob.instr/ extract node value from the xml stored as clob in my oracle.
                     start_position := dbms_lob.instr(r1.xml_data,'<Exception>',1,1) + 11;
                     end_position  := dbms_lob.instr(r1.xml_data, '</Exception>', start_position, 1);
                     xmldata := dbms_lob.substr(r1.xml_data, end_position - start_position, start_position);
now i want to use xpath; because i have a specific case which can be resolved using xpath. i ve this xpath which returns 4 lines to me in the xml file(using its xpath feature)

can someone help me share how i can use this xpath in oracle pl/sql?
thanks a lot
Who is Participating?
slightwv (䄆 Netminder) Commented:
As I've pointed out in previous questions, you can use EXTRACTVALUE or EXTRACT.  As you already know, the data has to be XMLTYPE and not CLOB.

I assume this is the same data from your previous questions and still can't cast it as XMLTYPE?

If you can provide some sample data and expected results I'll provide a working example.
samir25Author Commented:
you can delete the other one this ques is more elaborate and the other one is generic. and if you had read carefully...the ques is diff from the past one.i want some xpath things to be done. dont know how.
here is what want to do
can you help on this?
slightwv (䄆 Netminder) Commented:
I've deleted the other one as you requested.

Since you've accepted an answer I assume you no longer need assistance with this question.

If you still need assistance please provide the data I requested above and I'll unaccept the answer and continue helping you.

The data I requested above::
"If you can provide some sample data and expected results I'll provide a working example."
samir25Author Commented:
yes i resolved this tough i am stuck at a dif place for which i will float sep ques
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.