Hey I was just going through some article on XML, I came across the following snippet of code
<xs:element name="shirtSize">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:enumeration value="36"/>
<xs:enumeration value="40"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
I was wondering what base keyword means in the line
<xs:restriction base="xs:int">
Can anyone please explain me what it means??
Thanks
baseis not, strictly speaking, a keyword. It is part of XML Schema (XSD) “language”, letting you create simple types by restricting other simple types, including built-in numeric types.In your case, the integer value is restricted to two values – 36 and 40.