My Oracle Support Banner

How To Escape Special XML Characters Using XML SQL Utility (Doc ID 171951.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle XML SQL Utility (XSU) - Version and later
Information in this document applies to any platform.


You have an '&' (ampersand) stored as a part of the data inside the database table. You want to retrieve the data from table in XML format using the Oracle provided XML SQL Utility(XSU) and retain the format of the text (for example if you have data that is already in XML format).

You use DBMS_XMLQuery package to query the data and the output result shows '&' instead of '&' (ampersand).


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.