XML Schema reference manual
May 28, 2021
XML Schema
Table of contents
XML Schema
Reference Manual
In the study
During the XML Schema process, you can read the XML Schema reference manual more.
XSD element
Elements
|
Explain
|
all
|
Specifies that child elements can appear in any order, and that each child element can appear zero or once.
|
annotation
|
The annotation element is a top-level element that specifies a comment for schema.
|
any
|
Enables creators to extend XML documents with elements that are not specified by schema.
|
anyAttribute
|
Enables creators to extend XML documents with properties that are not specified by schema.
|
appInfo
|
Specifies the information to be used by the application in the annotation element.
|
attribute
|
Define a property.
|
attributeGroup
|
Defines the group of properties used in complex type definitions.
|
choice
|
Only one element that is included in the declaration is allowed to appear in the containing element.
|
complexContent
|
Define extensions or restrictions on complex types that contain mixed content or elements only.
|
complexType
|
Define complex types.
|
documentation
|
Define text comments in schema.
|
element
|
Define the element.
|
extension
|
Extend existing simpleType or complexType elements.
|
field
|
Specifies an XPath expression that specifies the value used to define the identity constraint.
|
group
|
Defines the groups 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
|
The specified property or element value (or set of values) must be a key within the specified range.
|
keyref
|
Specifies that a property or element value (or set of values) corresponds to the value of the specified key or unique element.
|
list
|
Define a simple type as a list of values that specify a data type.
|
notation
|
Describes the format of non-XML data in an XML document.
|
redefine
|
Redefining simple and complex types, groups, and property groups obtained from external schema files.
|
restriction
|
Defines constraints on simpleType, simpleContent, or complexContent.
|
schema
|
Define the root element of schema.
|
selector
|
Specifies an XPath expression that selects a set of elements for the identity constraint.
|
sequence
|
Requires that child elements appear sequentially.
Each child element can appear 0 to any number of times.
|
simpleContent
|
Contains extensions or restrictions on complexType elements and does not contain any elements.
|
simpleType
|
Define a simple type that specifies constraints and information about properties or the values of text-only elements.
|
union
|
Define multiple collections defined by simpleType.
|
unique
|
The specified property or element value (or a combination of property or element values) must be unique within the specified range.
|
XSD Qualification/Facets
See XSD Qualifying / Facets
Qualified
|
Describe
|
enumeration
|
Define a list of acceptable values
|
fractionDigits
|
Defines the maximum number of scales allowed.
Must be greater than or equal to 0.
|
length
|
Defines the exact number of characters or list items that are 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 an exact sequence of acceptable characters.
|
totalDigits
|
Defines the exact number of arabic numerals allowed.
Must be greater than 0.
|
whiteSpace
|
Defines how blank characters (line breaks, carriage returns, spaces, and tabs) are handled.
|