Easy Tutorial
❮ Schema Example Schema Howto ❯

XML Schema include Element



Definition and Usage

The include element is used to add multiple schemas with the same target namespace to a document.

Element Information

Syntax

(? The question mark indicates that the declaration can occur zero or one time within the include element.)

Attribute Description
id Optional. Specifies a unique ID for the element.
schemaLocation Required. Specifies the URI of the schema to include in the target namespace.
any attributes Optional. Specifies any other attributes with non-schema namespaces.

Example 1

The included schema must reference the same target namespace as the including file. If the schema target namespaces do not match, the inclusion will not be effective:


❮ Schema Example Schema Howto ❯