XML Schema:

Contents:

This schema describes the following elements and attributes:

Elements Attributes Element-specific Attributes
<#ELEMENT_> (document element) <#ELEMENT_>
#ATTRIBUTE_
<#ELEMENT_ #ELEMENTATTRIBUTE__>

Document conventions:

  • [] - optional
  • []* - zero or more times
  • + - one or more times

Elements

Attributes

Source

xml

Schema Attributes Reference:

The element can contain elements, attributes, and text not specified in the content model. This is the default value.
The element cannot contain elements, attributes, and text except for that specified in the content model. DTDs use a closed model.
The element can contain only text, not elements. Note that if the model attribute is set to "open", the element can contain text and additional elements.
The element can contain only the elements, not free text. Note that if the model attribute is set to "open", the element can contain text and additional elements.
The element cannot contain text or elements. Note that if the model attribute is set to "open", the element can contain text and additional elements.
The element can contain a mix of named elements and text. This is the default value.
Permits only one of a set of elements.
Requires the elements to appear in the specified sequence.
Permits the elements to appear (or not appear) in any order. This is the default.

Datatype Reference:

MIME-style Base64 encoded binary BLOB.
Hexadecimal digits representing octets.
0 or 1, where 0 == "false" and 1 =="true".
String, one character long.
Date in a subset ISO 8601 format, without the time data. For example: "1994-11-05".
Date in a subset of ISO 8601 format, with optional time and no optional zone. Fractional seconds can be as precise as nanoseconds. For example, "1988-04-07T18:39:09".
Date in a subset ISO 8601 format, with optional time and optional zone. Fractional seconds can be as precise as nanoseconds. For example: "1988-04-07T18:39:09-08:00".
Represents the XML ENTITY type.
Represents the XML ENTITIES type.
Represents an enumerated type (supported on attributes only).
Same as "number" but no more than 14 digits to the left of the decimal point, and no more than 4 to the right.
Real number, with no limit on digits; can potentially have a leading sign, fractional digits, and optionally an exponent. Punctuation as in U.S. English. Values range from 1.7976931348623157E+308 to 2.2250738585072014E-308.
Represents the XML ID type.
Represents the XML IDREF type.
Represents the XML IDREFS type.
Number, with optional sign, no fractions, and no exponent.
Represents the XML NMTOKEN type.
Represents the XML NMTOKENS type.
Represents a NOTATION type.
Number, with no limit on digits; can potentially have a leading sign, fractional digits, and optionally an exponent. Punctuation as in U.S. English. (Values have same range as most significant number, R8, 1.7976931348623157E+308 to 2.2250738585072014E-308.)
Represents a string type.
Time in a subset ISO 8601 format, with no date and no time zone. For example: "08:15:27".
Time in a subset ISO 8601 format, with no date but optional time zone. For example: "08:1527-05:00".
Integer represented in one byte. A number, with optional sign, no fractions, no exponent. For example: "1, 127, -128".
Integer represented in one word. A number, with optional sign, no fractions, no exponent. For example: "1, 703, -32768".
Integer represented in four bytes. A number, with optional sign, no fractions, no exponent. For example: "1, 703, -32768, 148343, -1000000000".
Real number, with seven digit precision; can potentially have a leading sign, fractional digits, and optionally an exponent. Punctuation as in U.S. English. Values range from 3.40282347E+38F to 1.17549435E-38F.
Real number, with 15 digit precision; can potentially have a leading sign, fractional digits, and optionally an exponent. Punctuation as in U.S. English. Values range from 1.7976931348623157E+308 to 2.2250738585072014E-308.
Unsigned integer. A number, unsigned, no fractions, no exponent. For example: "1, 255".
Unsigned integer, two bytes. A number, unsigned, no fractions, no exponent. For example: "1, 255, 65535".
Unsigned integer, four bytes. A number, unsigned, no fractions, no exponent. For example: "1, 703, 3000000000".
Universal Resource Identifier (URI). For example, "urn:schemas-microsoft-com:Office9".
Hexadecimal digits representing octets, optional embedded hyphens that are ignored. For example: "333C7BC4-460F-11D0-BC04-0080C7055A83".

Send suggestions to jmarsh. Based on a stylesheet by felixa.

syntax: <
 [ #ELEMENTATTRIBUTE__ = enumeration: formatEnum(this, selectSingleNode("../@default")); #datatype_ string ]  [ #ATTRIBUTE_ = enumeration: formatEnum(this, selectSingleNode("../@default")); #datatype_ string ]
/> >
 #datatype_ datatype
  #order_ (many)
  #order_ (many)
  +
  #order_ (many)
  *
 <#ELEMENT_> +
<#ELEMENT_> ] *
  content
 mixed content
</>
content: #datatype_ datatype #content_ mixed (default)
order: Ignored when a datatype is specified. #order_ many (default)
parents: #ELEMENT_ , No parents found. This is either the document element or an orphan.
childen: No children allowed when a datatype is specified. No children allowed when content is textOnly. #ELEMENT_ , (none)
attributes: #ELEMENTATTRIBUTE__ #ATTRIBUTE_ , (none)
model: Treated as closed when a datatype is specified. #model_ open (default)
source:
suppressNS(xml)
syntax: [ = #datatype_enumerationenumeration: formatEnum(this, selectSingleNode("../@default")); #datatype_ string ]
required: no (default)
datatype: #datatype_
values: formatEnum(this, selectSingleNode("../@default"));
default value:
elements: #ELEMENT_ #ELEMENT_ , (none)
source:
suppressNS(xml)
" + d + ""); } return e; } function suppressNS(xmlSource) { var re = / xmlns[^=]*=['"]urn:schemas-microsoft-com:xml-data['"]/g; xmlSource = xmlSource.replace(re, ""); var re = / xmlns[^=]*=['"]urn:schemas-microsoft-com:datatypes['"]/g; xmlSource = xmlSource.replace(re, ""); return xmlSource; } ]]>