Appendix H - Sample Validated Exchange File
This appendix contains a sample validated exchange file. The exchange file has been validated against the CIQ v3.0 Specifications. This example contains a sample record for illustrative purposes only. Exchanging parties should use the latest CIQ v3.0 schema available, agreed by the parties.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by (name and location withheld) -->
<c:Customers xmlns:c="urn:acme.org:corporate:customers" xmlns:a="urn:oasis:names:tc:ciq:xal:3" xmlns:n="urn:oasis:names:tc:ciq:xnl:3" xmlns:p="urn:oasis:names:tc:ciq:xpil:3" xmlns:ct="urn:oasis:names:tc:ciq:ct:3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:acme.org:corporate:customers sample-xPIL-wrapper.xsd">
<p:Party>
<p:PartyName>
<n:PersonName>
<n:NameElement n:ElementType="LastName">Citizen</n:NameElement>
<n:NameElement n:ElementType="FirstName">Fred</n:NameElement>
<n:NameElement n:ElementType="MiddleName">Wiremu</n:NameElement>
<n:NameElement n:ElementType="MiddleName">John</n:NameElement>
</n:PersonName>
</p:PartyName>
<p:PersonInfo p:Gender="M" />
<p:BirthInfo>
<p:BirthInfoElement p:Type="MothersName">Jane Public</p:BirthInfoElement> <p:BirthInfoElement p:Type="BirthYear">1963</p:BirthInfoElement>
<p:BirthInfoElement p:Type="BirthMonth">11</p:BirthInfoElement>
<p:BirthInfoElement p:Type="BirthDay">01</p:BirthInfoElement>
<p:BirthInfoElement p:Type="BirthTime" />
<p:BirthPlaceDetails>
<a:Country>
<a:NameElement ct:Abbreviation="true" a:NameType="Name">NZ</a:NameElement>
</a:Country>
<a:Locality>
<a:NameElement a:NameType="Type">Town</a:NameElement>
<a:NameElement a:NameType="Name">Taihape</a:NameElement>
</a:Locality>
</p:BirthPlaceDetails>
</p:BirthInfo>
</p:Party> </c:Customers>
NOTE – The exchange file has been validated against the CIQ Specifications v3.0 and a modified XML schema definition file (xPIL-types.xsd) that reflects the customisations introduced by this Standard to allow the mother's name and date of birth to be represented (see 6.4.4.1 and 6.4.4.2). The State Services Commission expects to implement an object repository as an authoritative source of modified XML schema definition files. Until such time as an object registry is available to host (among other objects) modified XML schema definition files, exchanging parties will have to agree among themselves on modifications to this XML schema definition file. The schema definition file should be modified by inserting the following XML code:
<xs:enumeration value="MothersName"/>
<xs:enumeration value="BirthYear"/>
<xs:enumeration value="BirthMonth"/>
<xs:enumeration value="BirthDay"/>
<xs:enumeration value="BirthTime"/>