<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="document">
		<xs:annotation>
			<xs:documentation>eSchKG / eLP XML Schema Version 1.1a</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="envelope" type="envelopeType"/>
				<xs:element name="messages">
					<xs:complexType>
						<xs:choice id="docType" maxOccurs="unbounded">
							<xs:element name="CR">
								<xs:annotation>
									<xs:documentation>collection request (CR)</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="senderRefData" type="tokenType">
											<xs:annotation>
												<xs:documentation>private message identifier</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="creditor" type="creditorType"/>
										<xs:element name="debtor" type="debtorType"/>
										<xs:element name="debtCollection">
											<xs:annotation>
												<xs:documentation>info about collection office and the business case</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:complexContent>
													<xs:extension base="debtCollectionType">
														<xs:sequence>
															<xs:element name="caseDetails" type="caseDetailsType" minOccurs="0">
																<xs:annotation>
																	<xs:documentation>some additional details</xs:documentation>
																</xs:annotation>
															</xs:element>
														</xs:sequence>
													</xs:extension>
												</xs:complexContent>
											</xs:complexType>
										</xs:element>
										<xs:element name="request" type="requestType">
											<xs:annotation>
												<xs:documentation>a number of claims with interests</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="SC">
								<xs:annotation>
									<xs:documentation>copy of the summon (SC)</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="receiverRefData" type="tokenType">
											<xs:annotation>
												<xs:documentation>copy of CR:senderRefData</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="creditor" type="creditorType"/>
										<xs:element name="debtor" type="debtorType"/>
										<xs:element name="debtCollection">
											<xs:annotation>
												<xs:documentation>info on collection office and the business case</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:complexContent>
													<xs:extension base="debtCollectionType">
														<xs:sequence>
															<xs:element name="paymentContact" type="paymentType">
																<xs:annotation>
																	<xs:documentation>office's payment information</xs:documentation>
																</xs:annotation>
															</xs:element>
															<xs:element name="caseDetails" type="caseDetailsType" minOccurs="0">
																<xs:annotation>
																	<xs:documentation>the collection's content</xs:documentation>
																</xs:annotation>
															</xs:element>
														</xs:sequence>
													</xs:extension>
												</xs:complexContent>
											</xs:complexType>
										</xs:element>
										<xs:element name="summon">
											<xs:annotation>
												<xs:documentation>claim data and delivery details</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:complexContent>
													<xs:extension base="requestType">
														<xs:sequence>
															<xs:element name="delivery">
																<xs:annotation>
																	<xs:documentation>delivery of the summon</xs:documentation>
																</xs:annotation>
																<xs:complexType>
																	<xs:sequence>
																		<xs:element name="dateIssued" type="xs:date">
																			<xs:annotation>
																				<xs:documentation>date as printed on the summon</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																		<xs:element name="addressedTo" type="tokenType">
																			<xs:annotation>
																				<xs:documentation>person to which the summon is addressed</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																		<xs:element name="deliveryDate" type="xs:date" minOccurs="0">
																			<xs:annotation>
																				<xs:documentation>date of the delivery</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																		<xs:element name="deliveredBy" type="xs:string" minOccurs="0">
																			<xs:annotation>
																				<xs:documentation>person who has delivered the summon</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																		<xs:element name="deliveredTo" type="xs:string" minOccurs="0">
																			<xs:annotation>
																				<xs:documentation>person to whom the summon was delivered</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
															<xs:element name="objection" minOccurs="0">
																<xs:annotation>
																	<xs:documentation>objection</xs:documentation>
																</xs:annotation>
																<xs:complexType>
																	<xs:sequence>
																		<xs:element name="objectionAmount" minOccurs="0">
																			<xs:annotation>
																				<xs:documentation>the amount objected. If empty, the entire claimed amount is objected against.</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:decimal">
																					<xs:minExclusive value="0"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:element>
																		<xs:element name="objectionDate" type="xs:date">
																			<xs:annotation>
																				<xs:documentation>date on which the objection occured</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																		<xs:element name="objectionReason" type="tokenType" minOccurs="0">
																			<xs:annotation>
																				<xs:documentation>reason statement</xs:documentation>
																			</xs:annotation>
																		</xs:element>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
														</xs:sequence>
													</xs:extension>
												</xs:complexContent>
											</xs:complexType>
										</xs:element>
										<xs:element name="metaData">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="stateInfo">
														<xs:annotation>
															<xs:documentation>progress of the SC</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="currentStateSC">
																	<xs:annotation>
																		<xs:documentation>current state of processing</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="xs:token">
																			<xs:enumeration value="SUdeliv"/>
																			<xs:enumeration value="SUundeliv"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="since" type="xs:date">
																	<xs:annotation>
																		<xs:documentation>moment in time when current state occured</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="details" type="tokenType" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>explanatory text</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="summon">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="stats">
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="numIssued">
																				<xs:annotation>
																					<xs:documentation>total number of summons issued in this case</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="xs:integer">
																						<xs:minExclusive value="0"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="SA">
								<xs:annotation>
									<xs:documentation>status answer (SA)</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="receiverRefData" type="tokenType">
											<xs:annotation>
												<xs:documentation>copy of the private identifier used in the SR</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="caseNumber" type="xs:token" minOccurs="0">
											<xs:annotation>
												<xs:documentation>official business case number</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="stateInfo">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="currentStateSA">
														<xs:annotation>
															<xs:documentation>current state of processing</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:token">
																<xs:enumeration value="unknown"/>
																<xs:enumeration value="canc"/>
																<xs:enumeration value="CRaccd"/>
																<xs:enumeration value="CRrejd"/>
																<xs:enumeration value="SUready"/>
																<xs:enumeration value="SUdeliv"/>
																<xs:enumeration value="SUundeliv"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="since" type="xs:date">
														<xs:annotation>
															<xs:documentation>moment in time when current state occured</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="summon">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="stats">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="numIssued" type="xs:integer" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>total number of summons issued in this case</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="errors" minOccurs="0">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="error" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="errorCode" type="tokenType">
																	<xs:annotation>
																		<xs:documentation>error number from error list</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="errorReason" type="tokenType" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>textual explanation</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="warnings" minOccurs="0">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="warning" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="warningCode" type="tokenType">
																	<xs:annotation>
																		<xs:documentation>warning number from the pre-defined list of warnings</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="warningReason" type="tokenType" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>meaningful text to explain the warning</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="SR">
								<xs:annotation>
									<xs:documentation>status request (SR)</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:choice>
											<xs:element name="senderRefData" type="tokenType">
												<xs:annotation>
													<xs:documentation>identifies the business case by means of the private identifier used in the CR</xs:documentation>
												</xs:annotation>
											</xs:element>
											<xs:element name="caseNumber" type="xs:token">
												<xs:annotation>
													<xs:documentation>official business case number</xs:documentation>
												</xs:annotation>
											</xs:element>
										</xs:choice>
										<xs:element name="action">
											<xs:annotation>
												<xs:documentation>INFO for information request. use TEST for testing purposes only!</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:token">
													<xs:enumeration value="info"/>
													<xs:enumeration value="test"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:choice>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="envelopeType">
		<xs:sequence>
			<xs:element name="transactionInfo">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="version" type="tokenType">
							<xs:annotation>
								<xs:documentation>version number of the eSchKG schema</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="numMsg" type="xs:integer" minOccurs="0">
							<xs:annotation>
								<xs:documentation>number of messages in this transaction</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="usage">
							<xs:annotation>
								<xs:documentation>transaction purpose (either test or production)</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:token">
									<xs:enumeration value="test"/>
									<xs:enumeration value="production"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="sender">
				<xs:annotation>
					<xs:documentation>not necessarily the creditor or representative</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="dateSent" type="xs:dateTime">
							<xs:annotation>
								<xs:documentation>creation date - date on which document was sent</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="senderID" type="tokenType">
							<xs:annotation>
								<xs:documentation>eSchKG network identifier (account ID)</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="senderName" type="tokenType">
							<xs:annotation>
								<xs:documentation>official participant name of sender</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="senderContact" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>person acting as a contact</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="senderPhone" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>phone number of contact person</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="senderFax" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>fax number of contact person</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="senderEmail" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>email of contact person</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="receiver">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="receiverID" type="tokenType">
							<xs:annotation>
								<xs:documentation>eSchKG network identifier (account ID)</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="creditorType">
		<xs:sequence>
			<xs:element name="principal">
				<xs:annotation>
					<xs:documentation>principal creditor - the real creditor</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="actorType">
							<xs:sequence>
								<xs:element name="credId" type="tokenType">
									<xs:annotation>
										<xs:documentation>The sending party is responsible of providing this identifier - it must be unique within the scope of the sender's network id (envelope/sender/senderID)</xs:documentation>
									</xs:annotation>
								</xs:element>
								<xs:element name="caseNumber" type="tokenType" minOccurs="0">
									<xs:annotation>
										<xs:documentation>creditor's private reference number of this collection -- see caseNumber(1)</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:sequence>
						</xs:extension>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="representative" minOccurs="0">
				<xs:annotation>
					<xs:documentation>a party acting on behalf of the creditor</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="actorType">
							<xs:sequence>
								<xs:element name="repId" type="tokenType">
									<xs:annotation>
										<xs:documentation>The sending party is responsible of providing this identifier - it must be unique within the scope of the sender's network id (envelope/sender/senderID)</xs:documentation>
									</xs:annotation>
								</xs:element>
								<xs:element name="caseNumber" type="tokenType" minOccurs="0">
									<xs:annotation>
										<xs:documentation>representative's private reference number of this collection -- see caseNumber (2)</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:sequence>
						</xs:extension>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="paymentInfo" type="paymentType">
				<xs:annotation>
					<xs:documentation>payment information to be used in this case</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="debtorType">
		<xs:sequence>
			<xs:element name="principal">
				<xs:annotation>
					<xs:documentation>the principal debtor, the person accused of owing money to the creditor</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="actorType">
							<xs:sequence>
								<xs:element name="associates" minOccurs="0">
									<xs:annotation>
										<xs:documentation>involved parties</xs:documentation>
									</xs:annotation>
									<xs:complexType>
										<xs:sequence>
											<xs:element name="associate" maxOccurs="unbounded">
												<xs:complexType>
													<xs:complexContent>
														<xs:extension base="actorType">
															<xs:sequence>
																<xs:element name="role">
																	<xs:annotation>
																		<xs:documentation>the associate's role</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="xs:token">
																			<xs:enumeration value="HW">
																				<xs:annotation>
																					<xs:documentation>Spouse or partner of the debtor</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="REPRES">
																				<xs:annotation>
																					<xs:documentation>Legal representative of the debtor</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="CURATOR">
																				<xs:annotation>
																					<xs:documentation>Curator of the debtor </xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="REP_CUR">
																				<xs:annotation>
																					<xs:documentation>The curator of the debtor's legal representative </xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="HW_REP">
																				<xs:annotation>
																					<xs:documentation>The legal representative of the debtor's spouse or partner </xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="HW_CUR">
																				<xs:annotation>
																					<xs:documentation>The curator of the debtor's spouse or partner </xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="COUNSEL"/>
																			<xs:enumeration value="UNKNOWN"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="assocIdOffice" type="tokenType" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>private identifier of the associate as used by the office - office must provide this ID with the SC message</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="assocIdInternal" type="tokenType" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>private identifier of the associate -- used by the creditor</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:extension>
													</xs:complexContent>
												</xs:complexType>
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
								<xs:element name="debtorIdOffice" type="tokenType" minOccurs="0">
									<xs:annotation>
										<xs:documentation>private identifier of the debtor as used by the office - the office must provide this ID with the SC message</xs:documentation>
									</xs:annotation>
								</xs:element>
								<xs:element name="debtorIdInternal" type="tokenType" minOccurs="0">
									<xs:annotation>
										<xs:documentation>private identifier of the debtor -- used by the creditor</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:sequence>
						</xs:extension>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="debtCollectionType">
		<xs:sequence>
			<xs:element name="officeID" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>official office identifier (currently not available)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="officeName" type="tokenType"/>
			<xs:element name="officeNameAddon" type="tokenType" minOccurs="0"/>
			<xs:element name="officeAddress" type="addressType">
				<xs:annotation>
					<xs:documentation>official mail address of the office</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="caseNumber" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>official business case number. caseNumber(3)</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="caseDetailsType">
		<xs:sequence>
			<xs:element name="caseType">
				<xs:annotation>
					<xs:documentation>ORDINARY</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="tokenType">
						<xs:enumeration value="ordinary"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="caseStats" minOccurs="0">
				<xs:annotation>
					<xs:documentation>the kind of claim (used for statistical purposes)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="tokenType">
						<xs:enumeration value="tax"/>
						<xs:enumeration value="insurance"/>
						<xs:enumeration value="other"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="remarks" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>remarks addressed to the office. these remarks will be treated confidential by the office</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="requestType">
		<xs:sequence>
			<xs:element name="claims">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="claim" maxOccurs="unbounded">
							<xs:complexType>
								<xs:complexContent>
									<xs:extension base="claimType"/>
								</xs:complexContent>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="claimType">
		<xs:sequence>
			<xs:element name="amount">
				<xs:annotation>
					<xs:documentation>the net amount claimed</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:minExclusive value="0"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="collocation" default="class3" minOccurs="0">
				<xs:annotation>
					<xs:documentation>collocation class - will not go into the summon</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="class1"/>
						<xs:enumeration value="class2"/>
						<xs:enumeration value="class3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="typeOfClaim" minOccurs="0">
				<xs:annotation>
					<xs:documentation>PC=primary claim
SC=secondary claim
EX=expenses
IC=interest claim
AC=accumulated costs</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="PC"/>
						<xs:enumeration value="IC"/>
						<xs:enumeration value="SC"/>
						<xs:enumeration value="EX"/>
						<xs:enumeration value="AC"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="reason" type="xs:token">
				<xs:annotation>
					<xs:documentation>reason for this claim</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="interest" type="interestTypeShort" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="interestTypeShort">
		<xs:sequence>
			<xs:element name="amountDue" minOccurs="0">
				<xs:annotation>
					<xs:documentation>amount on which to apply interest</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:minExclusive value="0"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="interestRate">
				<xs:annotation>
					<xs:documentation>interest rate as a percentage figure</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:minInclusive value="0"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="interestDateFrom" type="xs:date">
				<xs:annotation>
					<xs:documentation>interest period start date</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="actorType">
		<xs:sequence>
			<xs:element name="particular" type="particularType">
				<xs:annotation>
					<xs:documentation>description of a person or company</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="addresses">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="address" type="addressType" maxOccurs="2"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="particularType">
		<xs:annotation>
			<xs:documentation>used to describe the particulars of an actor - refer to actorType</xs:documentation>
		</xs:annotation>
		<xs:choice>
			<xs:element name="physicalPerson">
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="personType"/>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="company" type="companyType"/>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="personType">
		<xs:sequence>
			<xs:element name="gender">
				<xs:annotation>
					<xs:documentation>gender code: M=male, F=female, U=unknown</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="M"/>
						<xs:enumeration value="F"/>
						<xs:enumeration value="U"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="title" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Mr., Mrs., Miss, Doctor, and so on - use free text</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="lastName" type="tokenType"/>
			<xs:element name="lastNameAddon" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>maiden name</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="firstNames" type="tokenType">
				<xs:annotation>
					<xs:documentation>separate multiple names by a space character</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="language" type="languageType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>preferred language</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dateOfBirth" type="xs:date" minOccurs="0"/>
			<xs:element name="age" type="xs:integer" minOccurs="0"/>
			<xs:element name="noSeat" type="xs:boolean" minOccurs="0"/>
			<xs:element name="isRegistered" type="xs:boolean" minOccurs="0"/>
			<xs:element name="contact" minOccurs="0">
				<xs:annotation>
					<xs:documentation>communication details</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="phone1" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>ordinary phone</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="phone2" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>alternate ordinary phone number</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="mobile" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>cell phone number</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="fax" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>fax number</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="email" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>fully qualified email address</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="companyType">
		<xs:annotation>
			<xs:documentation>a company or public organisation</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="uid" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Swiss unique company identifier (UID)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="name" type="tokenType">
				<xs:annotation>
					<xs:documentation>official name of the company, as registered</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nameAddon" type="tokenType" minOccurs="0"/>
			<xs:element name="legalSeat" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>legal seat of company</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="contactPerson" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>administrative contact</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="language" type="languageType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>preferred language</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="isRegistered" type="xs:boolean" minOccurs="0">
				<xs:annotation>
					<xs:documentation>TRUE=company is in registered in the commercial registry</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="addressType">
		<xs:annotation>
			<xs:documentation>an address</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="street1" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>street</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="street2" type="tokenType" minOccurs="0"/>
			<xs:element name="buildingNo" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>building number</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="poBox" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>do not use with a debtor</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="zip" type="tokenType">
				<xs:annotation>
					<xs:documentation>zip code, 4-digits wide for Switzerland, may be longer and alphanumeric with other countries</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="zipCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation>use for addresses in Switzerland only - public 6-digit zip-code of the Swiss Post</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:maxInclusive value="999999"/>
						<xs:minInclusive value="100000"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="onrp" type="tokenType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>use for addresses in Switzerland only: persistent zip-code identifier of the Swiss Post (use as a primary key) </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="city" type="tokenType"/>
			<xs:element name="country">
				<xs:annotation>
					<xs:documentation>ISO 3166-1, alpha-2</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="tokenType">
						<xs:maxLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="type">
				<xs:annotation>
					<xs:documentation>type of address: D=domicile, R=delivery</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="D"/>
						<xs:enumeration value="R"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="paymentType">
		<xs:choice>
			<xs:element name="bank">
				<xs:annotation>
					<xs:documentation>bank account details</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="name">
							<xs:annotation>
								<xs:documentation>the name of the bank</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="tokenType"/>
							</xs:simpleType>
						</xs:element>
						<xs:element name="swift" minOccurs="0">
							<xs:annotation>
								<xs:documentation>bank's SWIFT-Code</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="tokenType">
									<xs:maxLength value="11"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:choice>
							<xs:element name="iban" type="tokenType">
								<xs:annotation>
									<xs:documentation>the account's IBAN</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:sequence>
								<xs:element name="bc">
									<xs:annotation>
										<xs:documentation>bank clearing number</xs:documentation>
									</xs:annotation>
									<xs:simpleType>
										<xs:restriction base="tokenType">
											<xs:maxLength value="9"/>
										</xs:restriction>
									</xs:simpleType>
								</xs:element>
								<xs:element name="account" type="tokenType">
									<xs:annotation>
										<xs:documentation>account number</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:sequence>
						</xs:choice>
						<xs:element name="pc" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>the bank's postal account number ("Postcheque")</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="holder" type="tokenType">
							<xs:annotation>
								<xs:documentation>account holder's name</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="esr" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>ESR referential number used on orange payment slips</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="post">
				<xs:annotation>
					<xs:documentation>a postal account ("Postcheque")</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="swift" minOccurs="0">
							<xs:annotation>
								<xs:documentation>the post's SWIFT-Code</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="tokenType">
									<xs:maxLength value="11"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:choice>
							<xs:element name="iban" type="tokenType">
								<xs:annotation>
									<xs:documentation>the account's IBAN</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="pc" type="tokenType">
								<xs:annotation>
									<xs:documentation>the postal account number ("Postcheque")</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:choice>
						<xs:element name="holder" type="tokenType">
							<xs:annotation>
								<xs:documentation>holder's name</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="esr" type="tokenType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>ESR referential number used on orange payment slips</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:choice>
	</xs:complexType>
	<xs:simpleType name="tokenType">
		<xs:annotation>
			<xs:documentation>basic type definition for text: no Cr, Lf, Tab. No more than a single blank character (space), no leading or trailing blanks (space characters). Defines the allowed character set (a..z, A..Z, 0..9, äöüàéèîôâê etc.)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="languageType">
		<xs:annotation>
			<xs:documentation>ISO 639-1 (use Swiss official languages and English)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="de"/>
			<xs:enumeration value="fr"/>
			<xs:enumeration value="it"/>
			<xs:enumeration value="rm"/>
			<xs:enumeration value="en"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
