XSD indicators e.g. <all> or <choice> having no
Posted: Thu Nov 13, 2003 5:54 pm
hi,
I have the following XML schema using the <all> indicator but
the xml validation is always succesful even i don't have a
REQID element. The <all> indicator has no effect in this case.
Anyone who can solve this problem?
Thank you very much.
<?xml version="1.0"?>
<xs:schema targetNamespace="dp24" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="SET">
<xs:complexType>
<xs:all>
<!--Request ID, unique and constant for each file-->
<xs:element name="REQID">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:totalDigits value="10"/>
<xs:pattern value="[0-9]{10}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
I have the following XML schema using the <all> indicator but
the xml validation is always succesful even i don't have a
REQID element. The <all> indicator has no effect in this case.
Anyone who can solve this problem?
Thank you very much.
<?xml version="1.0"?>
<xs:schema targetNamespace="dp24" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="SET">
<xs:complexType>
<xs:all>
<!--Request ID, unique and constant for each file-->
<xs:element name="REQID">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:totalDigits value="10"/>
<xs:pattern value="[0-9]{10}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>