I am trying to get rid of few changes while using XMLELEMENT. Below is an example:
SELECT XMLAGG(XMLELEMENT(E, ' ---- test using & (Ampersand) and '' (Apostrophe) ---- ')).EXTRACT('//text()').GETCLOBVAL() FROM DUAL;
It produces a HUGECLOB
:
-- test using &
; (Ampersand) and &apos
; (Apostrophe) --
But I need the exact content
:
-- test using & (Ampersand) and ' (Apostrophe) --
In XMLELEMENT
its mandatory to pass Element Name (any character or string)
Is there any other option ?
Thanks in advance.