Schema Schema
# XSD - Element
* * *
The `` element is the root element of every XML Schema.
* * *
## `` Element
The `` element is the root element of every XML Schema:
...
...
The `` element can contain attributes. A typical schema declaration looks like this:
...
...
The following code snippet:
xmlns:xs="http://www.w3.org/2001/XMLSchema"
indicates that the elements and data types used in the schema come from the namespace "http://www.w3.org/2001/XMLSchema". It also specifies that elements and data types from the namespace "http://www.w3.org/2001/XMLSchema" should use the prefix xs:
This fragment:
targetNamespace=""
indicates that the elements defined by this schema (note, to, from, heading, body) belong to the namespace "".
This fragment:
xmlns=""
indicates that the default namespace is "".
This fragment:
elementFormDefault="qualified"
indicates that any elements declared in this schema and used in an XML instance document must be namespace-qualified.
YouTip