My Oracle Support Banner

Space signs at the end of XML element values are removed by XMLTYPE() (Doc ID 473163.1)

Last updated on FEBRUARY 01, 2022

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2]
Oracle Database - Enterprise Edition - Version to [Release 10.1]
Oracle Database - Enterprise Edition - Version and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


When trying to insert an XML files into an XMLtype table or column, blank signs at the end of
the element values are removed, so the XML files may become invalid.

Following XML file has to be inserted (note that there is a space sign at the end of the value):

<?xml version="1.0" encoding="UTF-8"?>

During the insert, the space sign has been removed.
Due to this reduction, the XML file may become invalid if there is a restriction like "minLength value=2" in the underlying XML schema.


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

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