header

XSD Quick Reference

These elements are part of the XSD standard, which is a schema language for XML documents. XSD provides a way to define the structure, content, and constraints of an XML document.

  • xs:all is used to specify that the child elements of a complex type can occur in any order.
  • xs:annotation is used to add annotation information to a schema or to a component in a schema.
  • xs:any is used to specify that an element can have any element from any namespace as its child element.
  • xs:anyAttribute is used to specify that an element can have any attribute from any namespace.
  • xs:appinfo is used to provide application-specific information in an annotation.
  • xs:attribute is used to define an attribute for an element in the XML document.
  • xs:attributeGroup is used to group attributes together and reuse them in multiple elements.
  • xs:choice is used to specify that only one of the child elements of a complex type can occur.
  • xs:complexContent is used to extend or restrict the content of a complex type.
  • xs:complexType is used to define a complex type with a mixed content model or with a choice of elements.
  • xs:documentation is used to provide documentation for a schema or a component in a schema.
  • xs:element is used to define an element in the XML document.
  • xs:enumeration is used to specify a value from a list of possible values for a simple type.
  • xs:field is used in a xs:key or xs:unique element to specify the value of a field in the key or unique constraint.
  • xs:fractionDigits is used to specify the maximum number of fraction digits in the value of a simple type.
  • xs:group is used to group elements together and reuse them in multiple places in the schema.
  • xs:import is used to import a schema from a different namespace.
  • xs:include is used to include another schema in the current schema.
  • xs:key is used to specify a key constraint on the values of one or more fields in the XML document.
  • xs:keyref is used to specify a key reference constraint on the values of one or more fields in the XML document.
  • xs:length is used to specify the exact number of characters or digits in the value of a simple type.
  • xs:list is used to define a simple type that contains a list of values of a primitive type.
  • xs:maxExclusive is used to specify the maximum value (exclusive) of a simple type.
  • xs:maxInclusive is used to specify the maximum value (inclusive) of a simple type.
  • xs:maxLength is used to specify the maximum number of characters or digits in the value of a simple type.
  • xs:minExclusive is used to specify the minimum value (exclusive) of a simple type.
  • xs:minInclusive is used to specify the minimum value (inclusive) of a simple type.
  • xs:minLength is used to specify the minimum number of characters or digits in the value of a simple type.
  • xs:notation is used to define a notation for a system-specific or public identifier in the schema.
  • xs:pattern is used to specify a regular expression pattern that the value of a simple type must match.
  • xs:redefine is used to redefine a component in the schema without changing its original definition.
  • xs:restriction is used to restrict the value of a simple type or a complex type.
  • xs:schema is the root element of an XSD, which defines the structure, content, and constraints of an XML document.
  • xs:selector is used in a xs:key or xs:unique element to specify the XPath expression that selects the field(s) in the key or unique constraint.
  • xs:sequence is used to specify that the child elements of a complex type must occur in a specific order.
  • xs:simpleContent is used to extend or restrict the content of a simple type.
  • xs:simpleType is used to define a simple type.
  • xs:totalDigits is used to specify the total number of digits in the value of a simple type.
  • xs:union is used to define a simple type that is a union of several simple types.
  • xs:unique is used to specify a unique constraint on the values of one or more fields in the XML document.
  • xs:whiteSpace is used to specify how white space characters should be treated in the value of a simple type.