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 and later
Information in this document applies to any platform.


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.


Database was upgraded from to 12.1.x.


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