Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Output "<" instead of "& lt;" and ">" instead of "& gt;" using XMLELEMENT

441307Jul 18 2005 — edited Jul 19 2005
I have a procedure generating an xml file from a sql query.
I have this instruction:

xmlelement
("Model_ID", '<![CDATA[' ||'U252'||C.SEGMENT1||']]>')

But when I run it, I get:

<Model_ID>& lt;![CDATA[U25218]]& gt;</Model_ID>

And then I need to replace the "& lt;" and "& gt;" for "<" and ">" manually using Notepad in order to make the file useful.

Is there any way to escape this characters to get the correct output right from the procedure?

(I inserted a blank space after the ampersands to prevent this HTML editor from converting the code to the symbols)

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2005
Added on Jul 18 2005
2 comments
576 views