My Oracle Support Banner

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

Last updated on JUNE 30, 2023

Applies to:

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

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

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
Symptoms
Cause
Solution

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