Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

The NMTOKEN datatype is derived from the token type

<!-- schema --> <xsd:element name="title">   <xsd:complexType>    <xsd:complexContent>     <xsd:extension base="xsd:anyType">     <xsd:attribute name="degree" type="xsd:NMTOKEN"/>     </xsd:extension>    </xsd:complexContent>   </xsd:complexType> </xsd:element> <!-- instance document --> <title degree="MS">Mister</title>