Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extracting data from a tag of xml file which is(xml) in a Field of Csv.

Nawneet_AswalMar 25 2009 — edited Mar 30 2009
We have a xlm script which is stored in the clob column of the csv file. we have to extract one value from the <tag> and reject remaining data.

Sample:-
..........
........
<ROW>
<ID>100</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>
.....
.....

Required Output:-


We have to extract the "500 Marine World Parkway"
from tag <SHIPTO_STREET>



and the above sample xml file is in one of the column which is clob datatype



Any idea How to perform the above activity in PL/SQL ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2009
Added on Mar 25 2009
5 comments
524 views