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: builtintypes.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:anyType
- xsd:anySimpleType
- xsd:anyAtomicType
- xsd:string
- xsd:normalizedString
- xsd:token
- xsd:Name
- xsd:NCName
- restricted by xsd:ID
- restricted by xsd:IDREF
- used in list xsd:IDREFS
- restricted by xsd:ENTITY
- used in list xsd:ENTITIES
- xsd:NCName
- xsd:Name
- xsd:token
- xsd:normalizedString
- xsd:string
- xsd:anyAtomicType
- xsd:anySimpleType