XML Schema Reference Manual

XSD Element

Element Explanation
all Specifies that child elements can appear in any order, and each child element can appear zero or one time.
annotation The annotation element is a top-level element that specifies the annotations of the schema.
any Enables creators to extend the XML document with elements not specified by the schema.
anyAttribute Enables creators to extend the XML document with attributes not specified by the schema.
appInfo Specifies the information that the application needs to use in the annotation element.
attribute Define an attribute.
Define an attribute. attributeGroup
Define an attribute group used in complex type definitions. choice
Allow only one element to appear within the containing element in the <choice> declaration. complexContent
Define an extension or limitation of a complex type (including mixed content or containing only elements). complexType
Define a complex type. documentation
Define text annotations in the schema. element
Define an element. extension
Extend an existing simpleType or complexType element. field
Specify an XPath expression that defines the value used to define identification constraints. group
Define a group of elements used in complex type definitions. import
Add multiple schemas with different target namespaces to a document. include
Add multiple schemas with the same target namespace to a document. key
Specify that a property or element value (or a set of values) must be a key within the specified range. keyref
Specify that the value of a property or element value (or a set of values) corresponds to the value of a specified key or unique element. list
Define a list of values as a list of values of a specified data type. notation
Describe the format of non-XML data in an XML document. redefine
Redefine simple and complex types, groups, and attribute groups obtained from external schema files. restriction
Define constraints on simpleType, simpleContent, or complexContent. schema
Define the root element of the schema. selector
Specify an XPath expression that selects a set of elements for identification constraints. sequence
Requires child elements to appear in order. Each child element can appear 0 to any number of times. simpleContent
Contains extensions or restrictions of complexType elements and does not contain any elements. simpleType
Define a simple type, specifying constraints and information about the values of attributes or elements that contain only text. union
Define a collection of multiple simpleType definitions. unique

The value of a property or element (or a combination of property or element values) must be unique within the specified range.

See XSD limitation / Facets

limitation description
enumeration A list of acceptable values is defined.
fractionDigits Define the maximum number of decimal places allowed. It must be greater than or equal to 0.
length Define the precise number of characters or list items allowed. It must be greater than or equal to 0.
maxExclusive Define the upper limit of the number. The allowed values must be less than this value.
maxInclusive Define the upper limit of the number. The allowed values must be less than or equal to this value.
maxLength Define the maximum number of characters or list items allowed. It must be greater than or equal to 0.
minExclusive Define the lower limit of the number. The allowed values must be greater than this value.
minInclusive Define the lower limit of the number. The allowed values must be greater than or equal to this value.
minLength Define the minimum number of characters or list items allowed. It must be greater than or equal to 0.
pattern Define the precise sequence of characters that are acceptable.
totalDigits Define the precise number of digits allowed for Arabic numerals. It must be greater than 0.
whiteSpace Define the handling of whitespace characters (newlines, carriage returns, spaces, and tab characters).