Restrictions

Restrictions are used to define permissible values for elements and attributes. Restrictions enable modification of data types to create custom data types. Restrictions on XML elements are called facets. Facets are used within the restriction element.

The commonly used facets are:

  • minInclusive and maxInclusive
  • enumeration
  • pattern
  • length
The graphic shows some of the facets that can be used in an XML schema document.
Click the Next button to continue.