May 28, 2021 XML Schema
This section describes the definition of schema elements and their related use.
The schema element defines the root element of schema.
Attributes | describe |
---|---|
id | Optional.Specifies the only ID of the element. |
attributeFormDefault |
Optional.In the form of attributes declared in the target namespace of the Schema.This value must be one of the following strings: "Qualified" or "UNQUALIFIED".The default is "unqualified".
|
elementFormDefault |
Optional.In the form of an element declared in the target namespace of the Schema.This value must be one of the following strings: "Qualified" or "UNQUALIFIED".The default is "unqualified".
|
blockDefault |
Optional.The default values for the Block property on the Element and ComplexType elements are specified in the target namespace.Block attributes prevent complex types (or elements) with specified derived types (or elements) that are used instead of complex types (or elements).This value can contain #all or a list, which is an extension, restriction, or subsset:
|
finalDefault |
Optional.The default value of the final property of Element, SimpleType, and ComplexType elements is specified in the target namespace of this architecture.Final property prevents the specified derived type of Element, SimpleType or ComplexType element.For Element and ComplexType elements, this value can contain #all or a list, which is the subset of Extension or Restriction.For SimpleType elements, this value can also contain List and Union:
|
targetNamespace |
The URI reference of the Schema's namespace.You can also assign the prefix of the namespace.If no prefix is assigned, the Schema component of the namespace can be used with unlimited references. |
version |
Optional.Specifies the version of Schema. |
xmlns |
The URI references for one or more namespaces used in this Schema are specified.If there is no prefix, the Schema component of the namespace can be used with unlimited references. |
any attributes |
Optional.Specifies any other attribute with the Non-Schema namespace. |
In this case, http://www.w3.org/2001/XMLSchema the schema component (element name, type) in the namespace is not restricted, while //www.w3cschool.cn/w3cschoolschema (mystring) is limited by the wsc prefix: