XML Schema import Element | Rookie Tutorial
Rookie Tutorial -- Not only technology, but also dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
XML Schema Tutorial
XML Schema TutorialIntroduction to XML SchemaWhy Use XML Schema?How to Use XML SchemaXML Schema ElementXSD Simple ElementsXML Schema AttributesXML Schema Restrictions / FacetsXML Schema Complex ElementsXML Schema Complex Empty ElementsXML Schema Complex Types β Elements OnlyXML Schema Complex Elements β Text OnlyXML Schema Complex Types β Mixed ContentXML Schema IndicatorsXML Schema any ElementXML Schema anyAttribute ElementXML Schema Element ReplacementXML Schema ExampleXML Schema String Data TypesXML Schema Date/Time Data TypesXML Schema Numeric Data TypesXML Schema Miscellaneous Data TypesXML EditorXML Schema SummaryXML Schema Reference Manual
Deep Dive
Programming
Scripting
Web Service
Scripting Languages
Programming Languages
Search
Computer Science
Development Tools
Web Services
Web Design and Development
XML Schema import Element
Full 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
- Parent element: schema
Syntax
(annotation?)
(The ? symbol declares that in the import element, the element can occur zero or one time.)
| Attribute | 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 imported namespace. |
| any attributes | Optional. Specifies any other attributes with non-schema namespace. |
Example 1
The following example demonstrates importing a namespace:
.. .. ..
YouTip