xsd:ID
The type xsd:ID
is used for an attribute that uniquely identifies an element in an XML document. An xsd:ID
value must be an
xsd:ID
carries several additional constraints:
- Their values must be unique within an XML instance, regardless of the attribute's name or its element name.
- A complex type cannot include more than one attribute of type
xsd:ID
, or any type derived fromxsd:ID
. xsd:ID
attributes cannot have default or fixed values specified.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: builtintypes.xsd
Content
- Based on xsd:NCName
- Pattern: [\i-[:]][\c-[:]]* (Defined in type xsd:NCName)
- White Space: collapse (Defined in type xsd:token)