How to Generate XML Data from a Query which Includes Namespace Information (Doc ID 372574.1)

Last updated on MARCH 23, 2011

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.8 to 10.2.0.4 - Release: 9.2 to 10.2
Information in this document applies to any platform.
.
***Checked for relevance on 21-Dec-2009***

Goal

How to generate xml data from a query which includes specific namespace information. 

(This note is created as a workaround  for  <> "XMLFORMAT.CREATEFORMAT WITH USE_GIVEN_SCHEMA GETS ORA-600" )

sample namespace information needed:
---------------------------------------

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="plan.xsd"

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