Introduction to XML Schema

Organizations prefer XML schema because XML schema provides an object-oriented approach, which allows reuse of XML schema components, to describe the structure of XML documents. In addition, XML schemas support built-in data types, namespaces, and XML syntax that help to describe the relations between the valid elements and attributes of an XML document.

XML Schema

An XML schema document uses XML schema to describe:

  • Elements and attributes that can appear in an XML document
  • Child elements, the order of child elements, and the number of child elements
  • Data types for elements and attributes
  • Default and fixed values for elements and attributes
The graphic shows the contents of an XML schema document that describe the properties of elements and attributes, which an XML document can contain.
Click the Next button to continue.