D
deepak
Hi There,
For an element i have XSD defined as show below
<xs:element name="Foo" type="FooType" minOccurs="0" />
<xs:simpleType name="FooType">
<xs:restriction base="xs:string">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
</xs:restriction>
and in my XML if i have <Foo/> then the validation will fail stating
"Enumertion contraint failed"
but my understanding is this should not happen since i have defined
minOccurs="0" in my XSD.
any comments/suggestions apprectiated
Thanks
Deepak
For an element i have XSD defined as show below
<xs:element name="Foo" type="FooType" minOccurs="0" />
<xs:simpleType name="FooType">
<xs:restriction base="xs:string">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
</xs:restriction>
and in my XML if i have <Foo/> then the validation will fail stating
"Enumertion contraint failed"
but my understanding is this should not happen since i have defined
minOccurs="0" in my XSD.
any comments/suggestions apprectiated
Thanks
Deepak