How to Generate an XML Document with Indentation and Right Encoding Tag Using DBMS_XMLQUERY When StyleSheet is Applied

(Doc ID 1223589.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle XML SQL Utility (XSU) - Version 8.1.7.0 to 11.2.0.3 [Release 8.1.7 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 15-Dec-2014***

Goal

The sample code provided demonstrates how to generate an XML document which is indented and contains the appropriated / desired encoding tag.

Solution

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