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

Last updated on JANUARY 09, 2014

Applies to:

Oracle XML SQL Utility (XSU) - Version 9.2.0.8 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Jan-2014***

Symptoms

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).

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms