Professional Documents
Culture Documents
type="xsd:decimal"/>
The XML Schema above defines the element <shipOrder> to be of the type order. Order is a complex type element
consisting of the elements <shipTo> and <items>. The <shipTo> element is of the type shipAddress - a complex type
element consisting of the elements <name>, <street>, <address>, and <country>. The <items> element is of the type
cdItems - a complex type element consisting of <item> elements. The <item> element is of the type cdItem - a complex
type element consisting of <title>, <quantity>, and <price> elements. The <title> element is a normal element of the type
string.
Difficult? Read it once more. You will soon understand it.
If you have Internet Explorer 5.0 or higher, you can take a look at both the order and the schema.
XML Schema References
XML Schema elements
Element
Explanation
<all>
Specifies which child elements can be present. No specific order. The
elements are optional, but can only appear once
<annotation>
The parent element of the comment elements:
<appInfo> and <documentation>
<any>
Includes content from another Schema
<anyAttribute>
<appInfo>
A comment element. Provides a title to the Schema
<attribute>
<attributeGroup>
<choice>
Replaces the "|" operator in a DTD
<complexType> A set of attributes that declares the children of the specified element
<documentation>A comment element. Provides useful information about the Schema
<element>
Represents the specified element
<enumeration>
<field>
<group>
<import>
<include>
<key>
<keyref>
<length>
The length of the specified element
<maxInclusive>
<maxLength>
The specified element's value cannot be larger than the maxLength value
<minInclusive>
<minLength>
The specified element's value cannot be less than the minLength value
<pattern>
<schema>
The root element of the schema.
<selector>
<sequence>
Replaces the "," operator in a DTD
<simpleType>
<unique>
child