1

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 ' (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.

user3360094
  • 57
  • 10

1 Answers1

1

Found related answer:

How to replace ' or any special character in when using XMLELEMENT Oracle

Use of utl_i18n.unescape_reference

If you have anymore better option please reply. Thanks

Community
  • 1
  • 1
user3360094
  • 57
  • 10