Hi, For the following schema: <xs:element name="Element"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="ENUM_VAL_1"/> <xs:length value="0"/> <xs:enumeration value="ENUM_VAL_2"/> </xs:restriction> </xs:simpleType> </xs:element> Libxml parses this properly, and no error is generated.
There are two types of restrictions (enum and length) My doubt is when we a get a value for the element, should it abide by both the restrictions or any one of it is ok? Thanks!!
Regards Ashwin
|