Schema Central > XML Schema 1.1 > XMLSchema.xsd > xsd:schema
Advanced search
Need Schema Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:schema

See http://www.w3.org/TR/xmlschema11-1/#element-schema.

Element information

Type: Anonymous

Properties: Global, Qualified, ID: schema

Content

Attributes

NameOccTypeDescriptionNotes
Any attribute[0..*]Namespace: ##other, Process Contents: laxfrom type xsd:openAttrs
targetNamespace [0..1]xsd:anyURI
version [0..1]xsd:token
finalDefault [0..1]xsd:fullDerivationSetDefault value is "".
blockDefault [0..1]xsd:blockSetDefault value is "".
attributeFormDefault [0..1]xsd:formChoiceDefault value is "unqualified".
elementFormDefault [0..1]xsd:formChoiceDefault value is "unqualified".
defaultAttributes [0..1]xsd:QName
xpathDefaultNamespace [0..1]xsd:xpathDefaultNamespaceDefault value is "##local".
id [0..1]xsd:ID
xml:lang [0..1]Anonymousdenotes an attribute whose value is a language code for the natural language of the content of any element; its value is inherited.

Identity constraints

TypeNameSelectorField(s)
keyelementxs:element@name
keyattributexs:attribute@name
keytypexs:complexType|xs:simpleType@name
keygroupxs:group@name
keyattributeGroupxs:attributeGroup@name
keynotationxs:notation@name
uniqueidentityConstraint.//xs:key|.//xs:unique|.//xs:keyref@name

Sample instance

<xsd:schema>
   <xsd:include schemaLocation="http://www.example.com/">
   </xsd:include>
   <xsd:defaultOpenContent>
      <xsd:any>
      </xsd:any>
   </xsd:defaultOpenContent>
   <xsd:simpleType name="NCName">
      <xsd:restriction base="QName">
         <xsd:simpleType>...
         </xsd:simpleType>
         <xsd:minExclusive value="any text content">...
         </xsd:minExclusive>
      </xsd:restriction>
   </xsd:simpleType>
</xsd:schema>