Hi,
I am using xerces 1.4.3 DOM parser to validate and parse elements
against Schemas.
In my Schema definition, I have defined an element as follows : 

<xs:element name="SeverityCode">
        <xs:simpleType>
                <xs:restriction base="xs:string">
                        <xs:enumeration value=" "/>                   //
A single space
                        <xs:enumeration value="W"/>
                        <xs:enumeration value="E"/>
                        <xs:enumeration value="S"/>
                </xs:restriction>
        </xs:simpleType>
</xs:element>

However, in the XML file, although the element <SeverityCode> has as
value, a blank space (which should be valid as per the schema), it gives
an error during parsing as follows:
Datatype error: In element 'SeverityCode' : Value '' must be one of [ ,
W, E, S].

The element as in the XML file is <SeverityCode> </SeverityCode>

It is imperitive that a single space is a valid value for this element.
Can anyone suggest a solution to the problem?

TIA,
abhishek.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to