HI,
I am a beginner in XML schema. In XML schema(XSD) how to complex type, which is restricted to base64Binary (the value of base64Binary type should be any of the values from enumeration) ?
I have tried the below, but has some error, saying unexpected child element xs:enumeration. ( I am using altova's XML spy).
I am a beginner in XML schema. In XML schema(XSD) how to complex type, which is restricted to base64Binary (the value of base64Binary type should be any of the values from enumeration) ?
I have tried the below, but has some error, saying unexpected child element xs:enumeration. ( I am using altova's XML spy).
Code:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="Norwegian_customer"> <xs:complexContent> <xs:restriction base="xs:base64Binary"> <xs:enumeration value="R0lGODlhcgGSALMAAAQCAEMmCZtuMFQxDS8b"/> <xs:enumeration value="R0lGODlhcgGSALMAAAQCAEMmCZtuMFQxDS8x"/> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:schema>
Comment