XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://xilution.com/t20/schemas
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.

Declared Namespaces

Prefix Namespace
xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
t20 http://xilution.com/t20/schemas
Schema Component Representation
<xs:schema elementFormDefault="qualified" targetNamespace="http://xilution.com/t20/schemas">
...
</xs:schema>
top

Global Declarations

Element: account

Name account
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:account>
<t20:id> ... </t20:id> [1]
<t20:business-name> ... </t20:business-name> [0..1]
</t20:account>
Schema Component Representation
<xs:element name="account">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:id" minOccurs="1" maxOccurs="1"/>
<xs:element ref="t20:business-name" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: account-id

Name account-id
Type xs:long
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:account-id> xs:long </t20:account-id>
Schema Component Representation
<xs:element name="account-id" type="xs:long"/>
top

Element: accounts

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

Element: amount

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

Element: business-name

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

Element: category

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

Element: contact

Name contact
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:contact>
<t20:id> ... </t20:id> [1]
<t20:account-id> ... </t20:account-id> [0..1]
<t20:first-name> ... </t20:first-name> [0..1]
<t20:last-name> ... </t20:last-name> [0..1]
<t20:username> ... </t20:username> [0..1]
</t20:contact>
Schema Component Representation
<xs:element name="contact">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:id" minOccurs="1" maxOccurs="1"/>
<xs:element ref="t20:account-id" minOccurs="0" maxOccurs="1"/>
<xs:element ref="t20:first-name" minOccurs="0" maxOccurs="1"/>
<xs:element ref="t20:last-name" minOccurs="0" maxOccurs="1"/>
<xs:element ref="t20:username" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: contact-id

Name contact-id
Type xs:long
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:contact-id> xs:long </t20:contact-id>
Schema Component Representation
<xs:element name="contact-id" type="xs:long"/>
top

Element: contacts

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

Element: create-count

Name create-count
Type xs:integer
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:create-count> xs:integer </t20:create-count>
Schema Component Representation
<xs:element name="create-count" type="xs:integer"/>
top

Element: currency

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

Element: description

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

Element: DownloadTimeEntriesRequest

Name DownloadTimeEntriesRequest
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:DownloadTimeEntriesRequest>
<t20:accounts> ... </t20:accounts> [1]
<t20:contacts> ... </t20:contacts> [1]
<t20:start-timestamp> ... </t20:start-timestamp> [1]
<t20:end-timestamp> ... </t20:end-timestamp> [1]
</t20:DownloadTimeEntriesRequest>
Schema Component Representation
<xs:element name="DownloadTimeEntriesRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:accounts"/>
<xs:element ref="t20:contacts"/>
<xs:element ref="t20:start-timestamp"/>
<xs:element ref="t20:end-timestamp"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: DownloadTimeEntriesResponse

Name DownloadTimeEntriesResponse
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:DownloadTimeEntriesResponse>
<t20:accounts> ... </t20:accounts> [1]
<t20:contacts> ... </t20:contacts> [1]
<t20:start-timestamp> ... </t20:start-timestamp> [1]
<t20:end-timestamp> ... </t20:end-timestamp> [1]
<t20:time-entries> ... </t20:time-entries> [1]
</t20:DownloadTimeEntriesResponse>
Schema Component Representation
<xs:element name="DownloadTimeEntriesResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:accounts"/>
<xs:element ref="t20:contacts"/>
<xs:element ref="t20:start-timestamp"/>
<xs:element ref="t20:end-timestamp"/>
<xs:element ref="t20:time-entries"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: DownloadTimeSummariesRequest

Name DownloadTimeSummariesRequest
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:DownloadTimeSummariesRequest>
<t20:accounts> ... </t20:accounts> [1]
<t20:contacts> ... </t20:contacts> [1]
<t20:interval-duration> ... </t20:interval-duration> [1]
<t20:start-timestamp> ... </t20:start-timestamp> [1]
<t20:end-timestamp> ... </t20:end-timestamp> [1]
</t20:DownloadTimeSummariesRequest>
Schema Component Representation
<xs:element name="DownloadTimeSummariesRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:accounts"/>
<xs:element ref="t20:contacts"/>
<xs:element ref="t20:interval-duration"/>
<xs:element ref="t20:start-timestamp"/>
<xs:element ref="t20:end-timestamp"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: DownloadTimeSummariesResponse

Name DownloadTimeSummariesResponse
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:DownloadTimeSummariesResponse>
<t20:accounts> ... </t20:accounts> [1]
<t20:contacts> ... </t20:contacts> [1]
<t20:start-timestamp> ... </t20:start-timestamp> [1]
<t20:end-timestamp> ... </t20:end-timestamp> [1]
<t20:intervals> ... </t20:intervals> [1]
</t20:DownloadTimeSummariesResponse>
Schema Component Representation
<xs:element name="DownloadTimeSummariesResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:accounts"/>
<xs:element ref="t20:contacts"/>
<xs:element ref="t20:start-timestamp"/>
<xs:element ref="t20:end-timestamp"/>
<xs:element ref="t20:intervals"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: duration

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

Element: end-timestamp

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

Element: first-name

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

Element: id

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

Element: interval

Name interval
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:interval>
<t20:start-timestamp> ... </t20:start-timestamp> [1]
<t20:end-timestamp> ... </t20:end-timestamp> [1]
<t20:time-summaries> ... </t20:time-summaries> [0..*]
</t20:interval>
Schema Component Representation
<xs:element name="interval">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:start-timestamp"/>
<xs:element ref="t20:end-timestamp"/>
<xs:element ref="t20:time-summaries" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: interval-duration

Name interval-duration
Type xs:long
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:interval-duration> xs:long </t20:interval-duration>
Schema Component Representation
<xs:element name="interval-duration" type="xs:long"/>
top

Element: intervals

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

Element: last-name

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

Element: rate

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

Element: start-timestamp

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

Element: time-entries

Name time-entries
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:time-entries>
<t20:time-entry> ... </t20:time-entry> [0..*]
</t20:time-entries>
Schema Component Representation
<xs:element name="time-entries">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:time-entry" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: time-entry

Name time-entry
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:time-entry>
<t20:id> ... </t20:id> [0..1]
<t20:contact-id> ... </t20:contact-id> [1]
<t20:timestamp> ... </t20:timestamp> [1]
<t20:category> ... </t20:category> [0..1]
<t20:description> ... </t20:description> [0..1]
</t20:time-entry>
Schema Component Representation
<xs:element name="time-entry">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:id" minOccurs="0" maxOccurs="1"/>
<xs:element ref="t20:contact-id" minOccurs="1" maxOccurs="1"/>
<xs:element ref="t20:timestamp" minOccurs="1" maxOccurs="1"/>
<xs:element ref="t20:category" minOccurs="0" maxOccurs="1"/>
<xs:element ref="t20:description" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: timestamp

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

Element: time-summaries

Name time-summaries
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:time-summaries>
<t20:time-summary> ... </t20:time-summary> [0..*]
</t20:time-summaries>
Schema Component Representation
<xs:element name="time-summaries">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:time-summary" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: time-summary

Name time-summary
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:time-summary>
<t20:contact-id> ... </t20:contact-id> [1]
<t20:category> ... </t20:category> [1]
<t20:duration> ... </t20:duration> [1]
<t20:rate> ... </t20:rate> [1]
<t20:amount> ... </t20:amount> [1]
<t20:currency> ... </t20:currency> [1]
</t20:time-summary>
Schema Component Representation
<xs:element name="time-summary">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:contact-id"/>
<xs:element ref="t20:category"/>
<xs:element ref="t20:duration"/>
<xs:element ref="t20:rate"/>
<xs:element ref="t20:amount"/>
<xs:element ref="t20:currency"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: update-count

Name update-count
Type xs:integer
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:update-count> xs:integer </t20:update-count>
Schema Component Representation
<xs:element name="update-count" type="xs:integer"/>
top

Element: UploadTimeEntriesRequest

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

Element: UploadTimeEntriesResponse

Name UploadTimeEntriesResponse
Type Locally-defined complex type
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:UploadTimeEntriesResponse>
<t20:create-count> ... </t20:create-count> [1]
<t20:update-count> ... </t20:update-count> [1]
</t20:UploadTimeEntriesResponse>
Schema Component Representation
<xs:element name="UploadTimeEntriesResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="t20:create-count"/>
<xs:element ref="t20:update-count"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: username

Name username
Type xs:string
Nillable no
Abstract no
Diagram
XML Instance Representation
<t20:username> xs:string </t20:username>
Schema Component Representation
<xs:element name="username" type="xs:string"/>
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