YouTip LogoYouTip

Schema El Import

XML Schema import Element | Rookie Tutorial

Rookie Tutorial -- Not only technology, but also dreams!

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

XML Schema Summary

XML Schema include Element

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


Image 3: XML Schema Reference Manual 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:


 ..

 ..

 ..


Image 4: XML Schema Reference Manual Full XML Schema Reference Manual

← Schema El IncludeEl Group β†’