Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML Schema import Element

XML Schema import Element


XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The import element is used to add multiple schemas with different target namespaces to a document.

Element Information

Syntax

id=ID

namespace=anyURI

schemaLocation=anyURI

any attributes

(annotation?)

(The ? symbol declares that the element can occur zero or one time in the import element.)

property Description
id Optional. Specifies a unique ID for the element.
namespace Required. Specifies the URI of the namespace to import.
schemaLocation Optional. Specifies the URI of the namespace to be imported.
any attributes Optional. Specifies any other attributes with a non-schema namespace.

Example 1

The following example shows importing a namespace:

..

..

..


XML Schema Reference Manual Complete XML Schema Reference Manual