Oracle updateXml “less than sign” as text
问题 I have xml document <d> <r>a<b</r> </d> and I want to update it to <d> <r>a<b or c>d</r> </d> using updateXML statement. Executing select updateXML(xmltype('<d><r>a<b</r></d>'), '/d/r[1]/text()', 'a<b or c>d') from dual; returns <d> <r>a<b or c>d</r> </d> It is not good because of "&". Executing select updateXML(xmltype('<d><r>a<b</r></d>'), '/d/r[1]/text()', 'a<b or c>d') from dual; throws ORA-31067 XML nodes must be updated with valid nodes and of the same type. How can I reach