This is how the XML within the table looks like
<?xml version="1.0" encoding="UTF-8"?>
<select multiselect="false" name="c_f_2441_select_dev" phiField="true" readOnly="false" title="select_dev">
<dataValidationRule/>
<CFData>false</CFData>
<suppressRules>false</suppressRules>
<options>
<option code="1" status="A">Sel1</option>
<option code="2" status="A">Sel2</option>
<option code="3" status="A">Sel3</option>
</options>
<groups/>
</select>
Within the "options" element there are three values 'Sel1', 'Sel2' and 'Sel3'
select xt.*
from ST3_ENT1_REG4.custom_field cf,
XMLTABLE('/select'
PASSING cf.data_model_xml
COLUMNS
options VARCHAR2(20) PATH 'options'
) xt
where field_name='c_f_2441_select_dev';
The above query concatenates the three values and gives me the output as "Sel1Sel2Sel3". Is there a way I can get those three values in three different row.
Thanks