xsd:NCName
The type xsd:NCName represents an XML non-colonized name, which is simply a name that does not contain colons. An xsd:NCName value must start with either a letter or underscore (_) and may contain only letters, digits, underscores (_), hyphens (-), and periods (.). This is equivalent to the
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: datatypes.xsd
Content
Examples
| Valid values | Comment |
|---|---|
myElement | |
_my.Element | |
my-element | |
| Invalid values | Comment |
pre:myElement | an NCName must not contain a colon |
-myelement | an NCName must not start with a hyphen |
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:Name
- restricted by xsd:NCName
- restricted by xsd:ID
- restricted by xsd:IDREF
- used in list xsd:IDREFS
- restricted by xsd:ENTITY
- used in list xsd:ENTITIES
- restricted by xsd:NCName
- restricted by xsd:Name
- restricted by xsd:token
- restricted by xsd:normalizedString
- restricted by xsd:string



