The NMTOKEN datatype is derived from the token type : NMTOKEN « XML Schema « XML Tutorial






<!-- 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>








3.33.NMTOKEN
3.33.1.The NMTOKEN datatype is derived from the token type
3.33.2.Use xs:NMTOKEN