This provides an API for the XML Schema Standard Part 1 and Part 2.

Abstract XML Schema Components Part 1

The abstract XML Schema Components, as described in Part 1 of the Standard, are related according to this hierarchy:

Diagram of the Abstract Schema Component 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:

Diagram of the Abstract Schema Component Relations

This is very similar to the standard non-normative Schema Components Diagram.

The abstract XML Schema Components have the following defined attributes:

Diagram of the Abstract Schema Component Attributes

Abstract XML Schema Components Part 2

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:

Diagram of the Abstract Schema Components for Part 2

Abstract XML Schema Annotations

The abstract XML Schema Components, as described in Part 1 and Part 2 of the Standard, are annotated as follows:

Diagram of the Abstract Schema Component Annotations

Concrete XML Schema Components

The set of abstract XML Schema Components is extended to represent the concrete syntax as follows:

Diagram of the Concrete Schema Components

The concrete attributes are represented as follows:

Diagram of the Concrete Schema Component Attributes

The concrete containment relations are represented as follows:

Diagram of the Concrete Containment Relations

The following concrete components resolve to abstract components:

Diagram of Concrete Component Resolution

The following diagnostics are produced by validation:

Diagram of Concrete Component Diagnostics

The following concrete components have supplemental relations and attributes:

Diagram of Concrete Component Supplemental Relations and Attributes