Hi there.
I have a table (in Oracle) with a column defined as a CLOB and which holds a string of XML data.
What I am looking to do is to take this string and search for the <OLD> and <NEW> tags in a string such as the following:
<CHG client="c;GK" id="c;12345"><C OL NAM="this_col_o ne" TYP="c"><OLD>ol d-value</OLD><NEW>new-value</NEW>"><OLD>old-value</OLD><NEW>new-value</NEW></COL>...
Could somebody advise on how to break down this XML string please, so that I can extract the OLD and NEW values and then input these into another table?
I am starting to read about XPATH but hopefully somebody can ease the learning and offer some examples.
Thank you for your help.
M :o)
I have a table (in Oracle) with a column defined as a CLOB and which holds a string of XML data.
What I am looking to do is to take this string and search for the <OLD> and <NEW> tags in a string such as the following:
<CHG client="c;GK" id="c;12345"><C OL NAM="this_col_o ne" TYP="c"><OLD>ol d-value</OLD><NEW>new-value</NEW>"><OLD>old-value</OLD><NEW>new-value</NEW></COL>...
Could somebody advise on how to break down this XML string please, so that I can extract the OLD and NEW values and then input these into another table?
I am starting to read about XPATH but hopefully somebody can ease the learning and offer some examples.
Thank you for your help.
M :o)
Comment