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

Last updated on JUNE 10, 2012

Applies to:

Oracle Server - Enterprise Edition - Version 11.2.0.3 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

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