Instructions: Import, Include and Redefine (XSM)

Import, Include and Redefine allow you to enrich your XML model with external namespaces, schema files or schema components.

These instructions are only available in a model targeted with XSD.

Imports

An import identifies a namespace whose schema components are referenced by the current schema, allowing you to use components from any schema with different target namespace than the current schema.

In a schema, an import is declared with the <import> tag. For example:



Includes

An include allows you to include a specified schema file in the target namespace of the current schema, allowing you to use components from any schema with the same target namespace as the current schema or with no specified target namespace.

In a schema, an include is declared with the <include> tag. For example:



Redefines

A redefine allows you to redefine simple and complex types, groups and attribute groups from an external schema file in the current schema, allowing you to use components from any schema with the same target namespace as the current schema or with no specified target namespace.

In a schema, a redefine is declared with the <redefine> tag. For example: