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: builtintypes.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:anyType
- xsd:anySimpleType
- xsd:anyAtomicType
- xsd:string
- xsd:normalizedString
- xsd:token
- xsd:NMTOKEN
- used in list xsd:NMTOKENS
- xsd:NMTOKEN
- xsd:token
- xsd:normalizedString
- xsd:string
- xsd:anyAtomicType
- xsd:anySimpleType