The <schema> element is the root element of every XML Schema.
The <schema> element is the root element of every XML Schema:
The <schema> element may contain some attributes. A schema declaration often looks
something like this:
The Below fragment:
indicates that the elements and data types used in the schema come from the "http://www.w3.org/2001/XMLSchema"
namespace. It also specifies that the elements and data types that come from the "http://www.w3.org/2001/XMLSchema"
namespace should be prefixed with xs:
indicates that the elements defined by this schema (note, to, from, heading, body.) come from the
indicates that the default namespace is "http://www.qctutorials.com".
indicates that any elements used by the XML instance document which were declared in this schema
must be namespace qualified.
This XML document has a reference to an XML Schema:
specifies the default namespace declaration. This declaration tells the schema-validator that all
the elements used in this XML document are declared in the "http://www.qctutorials.com"
Once you have the XML Schema Instance namespace available:
you can use the schemaLocation attribute. This attribute has two values. The first value is the
namespace to use. The second value is the location of the XML schema to use for that
Your Query was successfully sent!