Incorrect XML document generated by DBMS_XMLGEN.CONVERT with ENTITY_DECODE in a multibyte character database (Doc ID 2084194.1)

Last updated on DECEMBER 01, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

In an AL32UTF8 multibyte characterset db, the XML document generated by DBMS_XMLGEN.CONVERT + ENTITY_DECODE is INVALID:

   
Inserting the generated document fails with:

ORA-64464: XML event error
ORA-19202: Error occurred in XML processing
In line 2629 of orastream:
LPX-00225: end-element tag "TEST3V3" does not match start-element tag "TEST3V2"


With a different database characterset, e.g. WE8ISO8859P15, this issue does not occur.

Changes

Database was upgraded from 11.2.0.4 to 12.1.x.

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