My Oracle Support Banner

XMLELEMENT Behaves Differently In Database version 10g And 11g (Doc ID 1461178.1)

Last updated on FEBRUARY 28, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

SQL> select xmlelement("test",xmltype('<a>1</a>') as "label") from dual;


In DB ver. 10.x and 11.1.0.6:
<test><label><a>1</a>
</label></test>

In DB ver. 11.1.0.7 and 11.2.x:

<test><a>1</a></test>

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
References


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