I have defined a enum as below in the XSD file
<xs:simpleType name="PaperSizes">
<xs:restriction base="xs:string">
<xs:enumeration value="NUMBERS"></xs:enumeration>
<xs:enumeration value="PICTURE"></xs:enumeration>
<xs:enumeration value="RTF"></xs:enumeration>
</xs:restriction>
I need to override the detault values assigned by the compiler. ie:- for NUMBERS the default value will be 0. I need the value 2 for it.
What changes i need to make?
Thanks.
You cannot set a different default for each of the values in a collection. You can set one default value for any xsd simple type with the “default” keyword.
So if you want to set a default value in your example above you could do something like:
I hope this helps.