Diff Tool Exercise - Solutions

Zero kudos if you look at the solutions before trying the exercises.

Exercise 1.1 - lines removed

xsd example

In the schema definition, v2 is missing these lines, location 453 in original

<xs:element name="BkPtyId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
<xs:element name="TaxIdNb" type="Max35Text" minOccurs="0" maxOccurs="1"/>

Exercise 1.2 - lines added

xsd example

In the schema definition, v2 has had line 699 duplicated in error

</xs:complexType>

Exercise 1.3 - lines rearranged

xsd example

In the schema definintion on lines 224 to 234 of v2, SimpleType DocumentType2Code has been rearranged. Kudos if you recognised that it has been sorted

<xs:enumeration value="CINV"/>
<xs:enumeration value="CMCN"/>
<xs:enumeration value="CNFA"/>
<xs:enumeration value="CREN"/>
<xs:enumeration value="DEBN"/>
<xs:enumeration value="DISP"/>
<xs:enumeration value="DNFA"/>
<xs:enumeration value="HIRI"/>
<xs:enumeration value="MSIN"/>
<xs:enumeration value="SBIN"/>
<xs:enumeration value="SOAC"/>

Exercise 1.4 - information changed on a single line

xsd example

In the schema definition on line 463, the order of attributes has been rearranged. Kudos if you noticed that maxOccurs has changed from 4 to 5

<xs:element name="PrvtId" minOccurs="1" maxOccurs="5" type="PersonIdentification3" />

Exercise 1.5 - lines split

xsd example

In the schema definition on line 165, the line has been split by tag. Kudos if you noticed that there’s an extra attribute base, that the tag is no longer closed with /> but ends with a >, and that the “name” attribute is now ccy rathern than Ccy

<xs:attribute 
	name="ccy" 
	type="CurrencyCode" 
	base="xs:string"
	use="required">

Exercise 1.6 - lines joined

xsd example

In the schema definition, line 278 has been joined with line 279. Kudos if you noticed the spelling of ‘elemnet’, the absence of capitalisation in both pairs of maxoccurs and minoccurs, and at least one spellign error.

<xs:element name="ClrSysMmbId" type="ClearingSystemMemberIdentification3Choice" minoccurs="0" maxoccurs="1"/><xs:elemnet name="Nm" type="Max70Text" minocurrs="0" maxoccurs="1"/>