Looking for xsd Answers? Try Ask4KnowledgeBase
Looking for xsd Keywords? Try Ask4Keywords

xsdxs:schema


Introduction

Describes for elements, attributes and types that are valid in an XML instance document. An XML Schema (XSD) must contain a single root level xs:schema element.

Parameters

AttributesDescription
attributeFormDefaultIndicates whether attributes in the XML instance document have to be qualified with a namespace (default unqualified)
blockDefaultThe default value of the block attribute that is applied to xs:complexType and xs:element. Defines the rules for blocking derivation/substituion in the instance document (default empty, i.e. block nothing)
defaultAttributes(XSD 1.1) Specifies an xs:attributeGroup that will be associated with all xs:complexType and xs:element within the schema (optional).
elementFormDefaultIndicates whether element in the XML instance document have to be qualified with a namespace (default unqualified). Note : almost without exception all schemas set this to 'qualified'.
finalDefaultThe default final attribute value used in xs:complexType and xs:element. Defines the rules for blocking derivation/substituion in the schema (default empty, i.e. block nothing)
idThe id of the schema item (optional)
targetNamespaceQualifies all the elements and attributes (and globally defined components) defined within this schema.
versionThe version of the schema, this is the version of the document, not this XSD version (i.e. Soap 1.2, FpML 4.2 etc)
xpathDefaultNamespace(XSD 1.1) The default value for the the attribute xpathDefaultNamespace which is used in xs:selector, xs:field, xs:alternative & xs:assert (specifies the default namespace to be used in XPath expressions)
anyAny other attributes not in the 'http://www.w3.org/2001/XMLSchema' namespace are allowed.
ElementsDescription
xs:annotationProvides the ability to add documentation and machine readable data.
xs:includeUsed to include a schema with the same targetNamespace, or no targetNamespace (see chameleon schemas).
xs:importUsed to include a schema with a targetNamespace different to the parent.
xs:redefineUsed to include a schema with the same targetNamespace (or no targetNamespace), and modify xs:simpleType, xs:complexType, xs:group or xs:attributeGroup definitions contained within it (here be dragons....)
xs:simpleTypeDefines a global (named) simple type which can then be referenced and re-used.
xs:complexTypeDefines a global (named) complex type which can then be referenced and re-used.
xs:groupDefines a global (named) group of elements which can then be referenced and re-used.
xs:attributeGroupDefines a global (named) group of attributes which can then be referenced and re-used.
xs:attributeDefines a global (named) attribute which can then be referenced and re-used.
xs:elementDefines a global (named) element which can then be referenced and re-used, or used as the basis of an XML instance document.
xs:notation-
xs:defaultOpenContent(XSD 1.1) Specifies rules for allowing additional elements to be permitted within every xs:complexType and xs:element within the schema.