LibraryToggle FramesPrintFeedback

The include directive has the following syntax:

The referenced schema, given by anyURI, must either belong to the same target namespace as the enclosing schema, or not belong to any target namespace at all. If the referenced schema does not belong to any target namespace, it is automatically adopted into the enclosing schema’s namespace when it is included.

Example 9.1 shows an example of an XML Schema document that includes another XML Schema document.


Example 9.2 shows the contents of the included schema file.


The import directive has the following syntax:

The imported definitions must belong to the namespaceAnyURI target namespace. If namespaceAnyURI is blank or remains unspecified, the imported schema definitions are unqualified.

Example 9.3 shows an example of an XML Schema that imports another XML Schema.


Example 9.4 shows the contents of the imported schema file.


Comments powered by Disqus
loading table of contents...