schema

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
          targetNamespace="http://www.wherever.org"
          xmlns="http://www.wherever.org"
          elementFormDefault="qualified"
          attributeFormDefault="unqualified">
  ...
</schema>
			
  • The root element for an XML Schema Document is named 'schema'.

  • All elements used by the XML Schema language are in the 'http://www.w3.org/2001/XMLSchema' namespace.

    Note

    Normally the prefix 'xsd' is used to indicate the 'XML Schema Definition' namespace.
  • The (global) elements and attributes defined by the schema are in the 'targetnamespace'.

  • Use a value of 'qualified' for the elementFormDefault attribute to define that all local and global elements are in the targetnamespace.

  • Use a value of 'qualified' for the attributeFormDefault attribute to define that all defined attributes are in the targetnamespace, otherwise only global attributes will be defined in the targetnamespace.