This provides an API for the XML Schema Standard Part 1 and Part 2.
The abstract XML Schema Components, as described in Part 1 of the Standard, are related according to this hierarchy:
In this UML notation, each relation or attribute Xyz in a diagram, corresponds to a getXyz method in Java for accessing that relation or attribute. If the relation or attribute is many-valued, the getXyz method yields a list, which can be modified directly using standard Java List API; otherwise a corresponding setXyz method is available for modification. A relation with a black diamond corresponds to a containment relation; these form the basis for the concrete tree structure of the model. A relation with a white diamond corresponds to a shared psuedo-containment relation; it is used only for documentation purposes since it is not logically different from a relation with no diamond. In general, the white diamond relations represent relations defined directly in the XML Schema specification. They are typically computed from other relations and hence should not be modified directly. The exception to this rule are relations involving types, e.g., base-type, member-type, item-type, and element- or attribute-type.
The abstract XML Schema Components have the following defined relations:
This is very similar to the standard non-normative Schema Components Diagram.
The abstract XML Schema Components have the following defined attributes:
The abstract XML Schema Components, as described in Part 2 of the Standard, are related according to this hierarchy with these defined relations and attributes:
The abstract XML Schema Components, as described in Part 1 and Part 2 of the Standard, are annotated as follows:
The set of abstract XML Schema Components is extended to represent the concrete syntax as follows:
The concrete attributes are represented as follows:
The concrete containment relations are represented as follows:
The following concrete components resolve to abstract components:
The following diagnostics are produced by validation:
The following concrete components have supplemental relations and attributes: