xsd:NMTOKEN
The type xsd:NMTOKEN represents a single string token. xsd:NMTOKEN values may consist of letters, digits, periods (.), hyphens (-), underscores (_), and colons (:). They may start with any of these characters. xsd:NMTOKEN has a whiteSpace facet value of collapse, so any leading or trailing whitespace will be removed. However, no whitespace may appear within the value itself.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: datatypes.xsd
Content
Examples
| Valid values | Comment |
|---|---|
ABCD | |
123_456 | |
starts_with_a_space | when parsed, leading spaces will be removed |
| Invalid values | Comment |
contains a space | value must not contain a space |
an empty value is not valid, unless xsi:nil is used |
Type Inheritance Chain
- xsd:anySimpleType
- restricted by xsd:string
- restricted by xsd:normalizedString
- restricted by xsd:token
- restricted by xsd:NMTOKEN
- used in list xsd:NMTOKENS
- restricted by xsd:NMTOKEN
- restricted by xsd:token
- restricted by xsd:normalizedString
- restricted by xsd:string



