XML Schema Complete Reference, The
by Cliff Binstock, Chris Galtenberg, Mike Wooding, Chris Dix, Mitchell Smith, Dave Peterson
7.9. The import Element
One XML schema can appropriate components from another XML schema that has a different namespace. An import element identifies a schema (usually by identifying a schema document that represents it) using a different namespace, and generates equivalent components in the new schema. The components retain their original namespace in the new schema.
Tip
An include element adds components from another schema, with a different namespace, to the current schema. An import element adds components from another schema, but associates them with the target namespace.
Section 6.15 provides a complete discussion on how the namespace and schemaLocation attributes affect locating schema components. The following list is a brief overview ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access