XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace None
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition

Declared Namespaces

Prefix Namespace
xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
Schema Component Representation
<xs:schema elementFormDefault="qualified">
<xs:include schemaLocation="commonDefinitions.xsd"/>
...
</xs:schema>
top

Global Declarations

Element: accepted

Name accepted
Type xs:boolean
Nillable no
Abstract no
Diagram
XML Instance Representation
<accepted> xs:boolean </accepted>
Schema Component Representation
<xs:element name="accepted" type="xs:boolean"/>
top

Element: accountName

Name accountName
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<accountName> xs:string </accountName>
Schema Component Representation
<xs:element name="accountName" type="xs:string"/>
top

Element: availableCollectionDate

Name availableCollectionDate
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<availableCollectionDate> xs:string </availableCollectionDate>
Schema Component Representation
<xs:element name="availableCollectionDate" type="xs:string"/>
top

Element: availableDeliveries

Name availableDeliveries
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<availableDeliveries>
<delivery> ... </delivery> [1..*]
</availableDeliveries>
Schema Component Representation
<xs:element name="availableDeliveries">
<xs:complexType>
<xs:sequence>
<xs:element ref="delivery" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: bookingStatus

Name bookingStatus
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<bookingStatus> xs:string </bookingStatus>
Schema Component Representation
<xs:element name="bookingStatus" type="xs:string"/>
top

Element: category

Name category
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<category> xs:string </category>
Schema Component Representation
<xs:element name="category" type="xs:string"/>
top

Element: charge

Name charge
Type doubleTwoDecimalPlaces
Nillable no
Abstract no
Diagram
XML Instance Representation
<charge> doubleTwoDecimalPlaces </charge>
Schema Component Representation
<xs:element name="charge" type="doubleTwoDecimalPlaces"/>
top

Element: collectionDepot

Name collectionDepot
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<collectionDepot> xs:string </collectionDepot>
Schema Component Representation
<xs:element name="collectionDepot" type="xs:string"/>
top

Element: commodityCode

Name commodityCode
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<commodityCode> xs:string </commodityCode>
Schema Component Representation
<xs:element name="commodityCode" type="xs:string"/>
top

Element: date

Name date
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<date> xs:string </date>
Schema Component Representation
<xs:element name="date" type="xs:string"/>
top

Element: delivery

Name delivery
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<delivery>
<date> ... </date> [1]
<reference> ... </reference> [1]
<ratedServices> ... </ratedServices> [1]
</delivery>
Schema Component Representation
<xs:element name="delivery">
<xs:complexType>
<xs:sequence>
<xs:element ref="date"/>
<xs:element ref="reference"/>
<xs:element ref="ratedServices"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: deliveryDate

Name deliveryDate
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<deliveryDate> xs:string </deliveryDate>
Schema Component Representation
<xs:element name="deliveryDate" type="xs:string"/>
top

Element: deliveryReference

Name deliveryReference
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<deliveryReference> xs:string </deliveryReference>
Schema Component Representation
<xs:element name="deliveryReference" type="xs:string"/>
top

Element: discount

Name discount
Type doubleTwoDecimalPlaces
Nillable no
Abstract no
Diagram
XML Instance Representation
<discount> doubleTwoDecimalPlaces </discount>
Schema Component Representation
<xs:element name="discount" type="doubleTwoDecimalPlaces"/>
top

Element: division

Name division
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<division> xs:string </division>
Schema Component Representation
<xs:element name="division" type="xs:string"/>
top

Element: divisionNumber

Name divisionNumber
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<divisionNumber> xs:string </divisionNumber>
Schema Component Representation
<xs:element name="divisionNumber" type="xs:string"/>
top

Element: document

Name document
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<document>
<DATASETS> ... </DATASETS> [1]
<ERROR> ... </ERROR> [1..*]
<PRICE> ... </PRICE> [1..*]
<priceResponse> ... </priceResponse> [1]
</document>
Schema Component Representation
<xs:element name="document">
<xs:complexType>
<xs:sequence>
<xs:element ref="DATASETS"/>
<xs:element ref="ERROR" maxOccurs="unbounded"/>
<xs:element ref="PRICE" maxOccurs="unbounded"/>
<xs:element ref="priceResponse"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: enhancedLiabilityIndicator

Name enhancedLiabilityIndicator
Type xs:boolean
Nillable no
Abstract no
Diagram
XML Instance Representation
<enhancedLiabilityIndicator> xs:boolean </enhancedLiabilityIndicator>
Schema Component Representation
<xs:element name="enhancedLiabilityIndicator" type="xs:boolean"/>
top

Element: errorDescription

Name errorDescription
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<errorDescription> xs:string </errorDescription>
Schema Component Representation
<xs:element name="errorDescription" type="xs:string"/>
top

Element: generatedById

Name generatedById
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<generatedById> xs:string </generatedById>
Schema Component Representation
<xs:element name="generatedById" type="xs:string"/>
top

Element: generatedByName

Name generatedByName
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<generatedByName> xs:string </generatedByName>
Schema Component Representation
<xs:element name="generatedByName" type="xs:string"/>
top

Element: guaranteed

Name guaranteed
Type xs:boolean
Nillable no
Abstract no
Diagram
XML Instance Representation
<guaranteed> xs:boolean </guaranteed>
Schema Component Representation
<xs:element name="guaranteed" type="xs:boolean"/>
top

Element: hazardousGoodsAllowed

Name hazardousGoodsAllowed
Type xs:boolean
Nillable no
Abstract no
Diagram
XML Instance Representation
<hazardousGoodsAllowed> xs:boolean </hazardousGoodsAllowed>
Schema Component Representation
<xs:element name="hazardousGoodsAllowed" type="xs:boolean"/>
top

Element: noteType

Name noteType
Type xs:int
Nillable no
Abstract no
Diagram
XML Instance Representation
<noteType> xs:int </noteType>
Schema Component Representation
<xs:element name="noteType" type="xs:int"/>
top

Element: OPTIONDESC

Name OPTIONDESC
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<OPTIONDESC> xs:string </OPTIONDESC>
Schema Component Representation
<xs:element name="OPTIONDESC" type="xs:string"/>
top

Element: options

Name options
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<options> xs:string </options>
Schema Component Representation
<xs:element name="options" type="xs:string"/>
top

Element: PRICE

Name PRICE
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<PRICE>
<RATEID> ... </RATEID> [1]
<SERVICE> xs:string </SERVICE> [1]
<SERVICEDESC> ... </SERVICEDESC> [1]
<OPTION> ... </OPTION> [1]
<OPTIONDESC> ... </OPTIONDESC> [1]
<CURRENCY> ... </CURRENCY> [1]
<RATE> ... </RATE> [1]
<RESULT> ... </RESULT> [1]
</PRICE>
Schema Component Representation
<xs:element name="PRICE">
<xs:complexType>
<xs:sequence>
<xs:element ref="RATEID"/>
<xs:element name="SERVICE" type="xs:string"/>
<xs:element ref="SERVICEDESC"/>
<xs:element ref="OPTION"/>
<xs:element ref="OPTIONDESC"/>
<xs:element ref="CURRENCY"/>
<xs:element ref="RATE"/>
<xs:element ref="RESULT"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: priceResponse

Name priceResponse
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<priceResponse>
<generatedByName> ... </generatedByName> [1]
<generatedById> ... </generatedById> [1]
<discount> ... </discount> [1]
<requestDateTime> ... </requestDateTime> [1]
<errorDescription> ... </errorDescription> [1]
<quoteReference> ... </quoteReference> [1]
<availableCollectionDate> ... </availableCollectionDate> [1]
<hazardousGoodsAllowed> ... </hazardousGoodsAllowed> [1]
<collectionDepot> ... </collectionDepot> [1]
<ratingDepot> ... </ratingDepot> [1]
<accountName> ... </accountName> [1]
<divisionNumber> ... </divisionNumber> [1]
<noteType> ... </noteType> [1]
<enhancedLiabilityIndicator> ... </enhancedLiabilityIndicator> [1]
<options> ... </options> [1]
<bookingStatus> ... </bookingStatus> [1]
<quoteComment> ... </quoteComment> [1]
<availableDeliveries> ... </availableDeliveries> [1]
<quoteHistory> ... </quoteHistory> [1]
</priceResponse>
Schema Component Representation
<xs:element name="priceResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="generatedByName"/>
<xs:element ref="generatedById"/>
<xs:element ref="discount"/>
<xs:element ref="requestDateTime"/>
<xs:element ref="errorDescription"/>
<xs:element ref="quoteReference"/>
<xs:element ref="availableCollectionDate"/>
<xs:element ref="hazardousGoodsAllowed"/>
<xs:element ref="collectionDepot"/>
<xs:element ref="ratingDepot"/>
<xs:element ref="accountName"/>
<xs:element ref="divisionNumber"/>
<xs:element ref="noteType"/>
<xs:element ref="enhancedLiabilityIndicator"/>
<xs:element ref="options"/>
<xs:element ref="bookingStatus"/>
<xs:element ref="quoteComment"/>
<xs:element ref="availableDeliveries"/>
<xs:element ref="quoteHistory"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: quoteComment

Name quoteComment
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<quoteComment> xs:string </quoteComment>
Schema Component Representation
<xs:element name="quoteComment" type="xs:string"/>
top

Element: quoteHistory

Name quoteHistory
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<quoteHistory> xs:string </quoteHistory>
Schema Component Representation
<xs:element name="quoteHistory" type="xs:string"/>
top

Element: quoteReference

Name quoteReference
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<quoteReference> xs:string </quoteReference>
Schema Component Representation
<xs:element name="quoteReference" type="xs:string"/>
top

Element: RATE

Name RATE
Type doubleTwoDecimalPlaces
Nillable no
Abstract no
Diagram
XML Instance Representation
<RATE> doubleTwoDecimalPlaces </RATE>
Schema Component Representation
<xs:element name="RATE" type="doubleTwoDecimalPlaces"/>
top

Element: ratedService

Name ratedService
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<ratedService>
<deliveryReference> ... </deliveryReference> [1]
<code> xs:string </code> [1]
<description> xs:string </description> [1]
<division> ... </division> [1]
<charge> ... </charge> [1]
<guaranteed> ... </guaranteed> [1]
<discount> ... </discount> [1]
<surcharges> ... </surcharges> [1]
<deliveryDate> ... </deliveryDate> [1]
<accepted> ... </accepted> [1]
<commodityCode> ... </commodityCode> [1]
</ratedService>
Schema Component Representation
<xs:element name="ratedService">
<xs:complexType>
<xs:sequence>
<xs:element ref="deliveryReference"/>
<xs:element name="code" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element ref="division"/>
<xs:element ref="charge"/>
<xs:element ref="guaranteed"/>
<xs:element ref="discount"/>
<xs:element ref="surcharges"/>
<xs:element ref="deliveryDate"/>
<xs:element ref="accepted"/>
<xs:element ref="commodityCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: ratedServices

Name ratedServices
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<ratedServices>
<ratedService> ... </ratedService> [1..*]
</ratedServices>
Schema Component Representation
<xs:element name="ratedServices">
<xs:complexType>
<xs:sequence>
<xs:element ref="ratedService" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: ratingDepot

Name ratingDepot
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<ratingDepot> xs:string </ratingDepot>
Schema Component Representation
<xs:element name="ratingDepot" type="xs:string"/>
top

Element: reference

Name reference
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<reference> xs:string </reference>
Schema Component Representation
<xs:element name="reference" type="xs:string"/>
top

Element: requestDateTime

Name requestDateTime
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<requestDateTime> xs:string </requestDateTime>
Schema Component Representation
<xs:element name="requestDateTime" type="xs:string"/>
top

Element: RESULT

Name RESULT
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<RESULT> xs:string </RESULT>
Schema Component Representation
<xs:element name="RESULT" type="xs:string"/>
top

Element: SERVICEDESC

Name SERVICEDESC
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<SERVICEDESC> xs:string </SERVICEDESC>
Schema Component Representation
<xs:element name="SERVICEDESC" type="xs:string"/>
top

Element: surcharge

Name surcharge
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<surcharge>
<category> ... </category> [1]
<description> xs:string </description> [1]
<charge> ... </charge> [1]
<commodityCode> ... </commodityCode> [1]
</surcharge>
Schema Component Representation
<xs:element name="surcharge">
<xs:complexType>
<xs:sequence>
<xs:element ref="category"/>
<xs:element name="description" type="xs:string"/>
<xs:element ref="charge"/>
<xs:element ref="commodityCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: surcharges

Name surcharges
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<surcharges>
<surcharge> ... </surcharge> [1..*]
</surcharges>
Schema Component Representation
<xs:element name="surcharges">
<xs:complexType>
<xs:sequence>
<xs:element ref="surcharge" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia" >
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice [1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1] ?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexType name="AusAddress">
<complexContent>
<extension base="Address">
<sequence>
<element name="state" type="AusStates"/>
<element name="postcode">
<simpleType>
<restriction base="string">
<pattern value="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attribute name="country" type="string" fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top