Space signs at the end of XML element values are removed by XMLTYPE()
(Doc ID 473163.1)
Last updated on MARCH 28, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 10.2.0.4 [Release 10.2]
Oracle Database - Enterprise Edition - Version 10.1.0.2 to 10.1.0.5 [Release 10.1]
Oracle Database - Enterprise Edition - Version 220.127.116.11 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.
Checked for Relevance on 30-Aug-2010
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