Concatenate XMLType nodes in Oracle query
问题 I have a CLOB column that contains XML type data. For example XML data is: <A><B>123</b><C>456</C><B>789</b></A> I have tried the concat function: concat(xmltype (a.xml).EXTRACT ('//B/text()').getStringVal (),';')) or xmltype (a.xml).EXTRACT (concat('//B/text()',';').getStringVal ())) But they are giving ";" at end only not after each <B> tag. I am currently using xmltype (a.xml).EXTRACT ('//B/text()').getStringVal () I want to concatenate all <B> with ; and expected result should be 123;789