XSD element ¶
element | explain |
|---|---|
It is stipulated that child elements can appear in any order, and each child element can appear zero or once. | |
The annotation element is a top-level element that specifies the comments for the schema. | |
Enables creators to extend schema documents through elements that are not specified by XML. | |
Enables creators to extend schema documents with attributes that are not specified by XML. | |
Specifies the information that the application will use in the annotation element. | |
Define an attribute. | |
Defines the property groups used in complex type definitions. | |
Only one element in the < choice > declaration is allowed to appear in the containing element. | |
Defines extensions or restrictions on complex types that contain mixed content or only elements. | |
Define complex types. | |
Define text comments in schema. | |
Define the element. | |
Extend existing simpleType or complexType elements. | |
Specifies the XPath expression that specifies the value used to define the identity constraint. | |
Defines the group of elements used in a complex type definition. | |
Add multiple schema with different target namespaces to a document. | |
Add multiple schema with the same target namespace to a document. | |
The specified attribute or element value (or set of values) must be a key within the specified range. | |
Specifies that the value of an attribute or element (or set of values) corresponds to the value of the specified key or unique element. | |
Defines a simple type as a list of values of the specified data type. | |
Describes the format of non-XML data in an XML document. | |
Redefine simple and complex types, groups, and property groups obtained from external schema files. | |
Define constraints on simpleType, simpleContent, or complexContent. | |
Define the root element of the schema. | |
Specifies the XPath expression that selects a set of elements for the identity constraint. | |
Requires that child elements appear in order. Each child element can appear from 0 to any number of times. | |
Contains extensions or restrictions on complexType elements and does not contain any elements. | |
Define a simple type that specifies constraints and information about the value of an attribute or text-only element. | |
Defines a collection of multiple simpleType definitions. | |
Specifies that an attribute or element value (or a combination of attribute or element values) must be unique within the specified range. |
XSD qualification / Facets ¶
Limit | Description |
|---|---|
Enumeration | Define a list of acceptable values |
FractionDigits | Defines the maximum number of decimal places allowed. Must be greater than or equal to 0. |
Length | Defines the exact number of characters or list items allowed. Must be greater than or equal to 0. |
MaxExclusive | Defines the upper limit of the value. The allowed value must be less than this value. |
MaxInclusive | Defines the upper limit of the value. The allowed value must be less than or equal to this value. |
MaxLength | Defines the maximum number of characters or list items allowed. Must be greater than or equal to 0. |
MinExclusive | Defines the lower limit of the value. The allowed value must be greater than this value. |
MinInclusive | Defines the lower limit of the value. The allowed value must be greater than or equal to this value. |
MinLength | Defines the minimum number of characters or list items allowed. Must be greater than or equal to 0. |
Pattern | Defines a precise sequence of acceptable characters. |
TotalDigits | Defines the exact number of digits allowed for Arabic numerals. Must be greater than 0. |
WhiteSpace | Defines how white space characters (line feeds, carriage returns, spaces, and tabs) are handled. |