Identifies the start of a schema definition.
Syntax
<Schema name="schema-name" xmlns="namespace" >
Attributes
- name
- Name of the schema.
- xmlns
- One or more namespaces for use with the schema.
Element Information
Number of occurrences 1 Parent elements (No parent elements) Child elements AttributeType, ElementType, description Requires closing tag Yes. XML Schema is an XML grammar and, like all XML grammars, all tags must have closing tags to satisfy the definition of well-formed.
Remarks
The Schema element is the document element (the highest-level element) in a schema definition.
The namespaces specified using the xmlns attribute must include the namespace for the schema-defining elements (Schema, ElementType, and so on). Any prefix can be used, but it is convenient to make the Schema namespace the default namespace to avoid having to use a prefix on every XML Schema element.
The Schema document element in an XML Schema should also contain namespace declarations for any other schemas, such as the namespace that defines the built-in data types for XML Schema.
Example
<Schema name="fooSchema" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes"> </Schema>