Describes for elements, attributes and types that are valid in an XML instance document. An XML Schema (XSD) must contain a single root level xs:schema element.
Attributes | Description |
---|---|
attributeFormDefault | Indicates whether attributes in the XML instance document have to be qualified with a namespace (default unqualified) |
blockDefault | The default value of the block attribute that is applied to xs:complexType and xs:element. Defines the rules for blocking derivation/substituion in the instance document (default empty, i.e. block nothing) |
defaultAttributes | (XSD 1.1) Specifies an xs:attributeGroup that will be associated with all xs:complexType and xs:element within the schema (optional). |
elementFormDefault | Indicates whether element in the XML instance document have to be qualified with a namespace (default unqualified). Note : almost without exception all schemas set this to 'qualified'. |
finalDefault | The default final attribute value used in xs:complexType and xs:element. Defines the rules for blocking derivation/substituion in the schema (default empty, i.e. block nothing) |
id | The id of the schema item (optional) |
targetNamespace | Qualifies all the elements and attributes (and globally defined components) defined within this schema. |
version | The version of the schema, this is the version of the document, not this XSD version (i.e. Soap 1.2, FpML 4.2 etc) |
xpathDefaultNamespace | (XSD 1.1) The default value for the the attribute xpathDefaultNamespace which is used in xs:selector, xs:field, xs:alternative & xs:assert (specifies the default namespace to be used in XPath expressions) |
any | Any other attributes not in the 'http://www.w3.org/2001/XMLSchema' namespace are allowed. |
Elements | Description |
xs:annotation | Provides the ability to add documentation and machine readable data. |
xs:include | Used to include a schema with the same targetNamespace, or no targetNamespace (see chameleon schemas). |
xs:import | Used to include a schema with a targetNamespace different to the parent. |
xs:redefine | Used to include a schema with the same targetNamespace (or no targetNamespace), and modify xs:simpleType, xs:complexType, xs:group or xs:attributeGroup definitions contained within it (here be dragons....) |
xs:simpleType | Defines a global (named) simple type which can then be referenced and re-used. |
xs:complexType | Defines a global (named) complex type which can then be referenced and re-used. |
xs:group | Defines a global (named) group of elements which can then be referenced and re-used. |
xs:attributeGroup | Defines a global (named) group of attributes which can then be referenced and re-used. |
xs:attribute | Defines a global (named) attribute which can then be referenced and re-used. |
xs:element | Defines a global (named) element which can then be referenced and re-used, or used as the basis of an XML instance document. |
xs:notation | - |
xs:defaultOpenContent | (XSD 1.1) Specifies rules for allowing additional elements to be permitted within every xs:complexType and xs:element within the schema. |