I have a text like that.
<div>
blabla <b> BOLD </b> babla <b> BOLD2</b> blabla
<table width="100%">
<tr>
<td valign="top" style="width:30px">-</td>
<td>blabla <b>BOLD3</b></td>
</tr>
</div>
I want to extract the word between the b tag. But there is several path.
SELECT t1,t2
FROM mytext,
XMLTABLE (
'/div'
PASSING xmltype (raw_text.inhalt)
COLUMNS t2 VARCHAR2 (1000) PATH './b', --
t1 VARCHAR2 (1000) PATH './table/tr/td/b'))
[Error] Execution (11: 1): ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence