My Oracle Support Banner

XML schema validation allows space character (blank) In xs:decimal type (Doc ID 1942160.1)

Last updated on MARCH 28, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2 to 12.1]
Information in this document applies to any platform.


Given the following sample XML schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="" xmlns:wb="" xmlns:xs="" targetNamespace="" elementFormDefault="unqualified" attributeFormDefault="unqualified">
    <xs:simpleType name="anzahl">
        <xs:restriction base="xs:decimal">
            <xs:fractionDigits value="2"/>
            <xs:totalDigits value="11"/>
            <xs:minInclusive value="0"/>
    <xs:element name="decimalValues">
            <xs:documentation>space Validation</xs:documentation>
            <xs:sequence maxOccurs="unbounded">
                <xs:element name="value" type="anzahl"/>

And XML instance document:

<?xml version="1.0" encoding="UTF-8"?>
<wb:decimalValues xsi:schemaLocation=" spaceValidation.xsd" xmlns:wb="" xmlns:xsi="">
    <value> </value>

Schema validation does not raise an error and allows a blank space character in xs:decimal type:


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.