SWIFT Module 7.1 SP10.July 2020 | Package Services | XML Parsing Templates for SWIFT FIN Messages | Parsing Template Structure | Sample Parsing Template
 
Sample Parsing Template
A sample parsing template is illustrated below:
<?xml version="1.0"?>
<block id="101" isMandator y = "true" isList ="false">
   <lineAttribute id="1:" isMandatory="true" extract Hint="BR,{,},T,S"
idHint="FL,0,2" B2BMap="" EAImap="B1" />
   <lineAttribute id="2:" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,2" B2BMap="" EAImap="B2" />
<block id="3:" isMandatory="true" isList="false" termString=""
extractHint="BR,{,},T,S" idHint="FL,0,2" EAImap="B3">
     <lineAttribute id="103:" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,4" B2BMap="" EAImap="O103" />
     <lineAttribute id="113:" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,4" B2BMap="" EAImap="O113" />
     <lineAttribute id="108:" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,4" B2BMap="" EAImap="O108" />
     <lineAttribute id="119:" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,4" B2BMap="" EAImap="O119" />
     <lineAttribute id="115:" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,4" B2BMap="" EAImap="O115" />
</block>
<block id="4:\r\n" isMandatory="false" isList="false" termString="\r\n"
extractHint="BR,{,-},T,S" idHint="FL,0,4" EAImap="B4">
     <lineAttribute id=":20:" isMandatory="true" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="M20" />
     <lineAttribute id=":21R:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O21R" />
     <lineAttribute id=":50L:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O50L" />
     <lineAttribute id=":50H:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O50H" />
     <lineAttribute id=":52A:,:52C:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O52A,O52C" />
     <lineAttribute id=":51A:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O51A" />
     <lineAttribute id=":30:" isMandatory="true" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="M30" />
     <lineAttribute id=":25:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="O25" />
     <block id="B4B" isMandatory="true" isList="true" termString="\r\n"
EAImap="B4B">
          <lineAttribute id=":21:" isMandatory="true" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="M21" />
          <lineAttribute id=":21F:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O21F" />
          <block id="B423E" isMandatory="false" isList="true"termString="\r\n"
EAImap="B423E">
             <lineAttribute id=":23E:" isMandatory="true"
extractHint="DL,:,T,S" idHint="FL,0,5" B2BMap="" EAImap="O23E"/>
          </block>
          <lineAttribute id=":32B:" isMandatory="true" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="M32B" />
          <lineAttribute id=":50L:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O50L" />
          <lineAttribute id=":50H:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O50H" />
          <lineAttribute id=":52A:,:52C:" isMandatory="false"
extractHint="DL,:,T,S" idHint="FL,0,5" B2BMap="" EAImap="O52A,O52C" />
          <lineAttribute id=":56A:,:56C:,:56D:" isMandatory="false"
extractHint="DL,:,T,S" idHint="FL,0,5" B2BMap="" EAImap="O56A,O56C,O56D" />
          <lineAttribute id=":57A:,:57C:,:57D:" isMandatory="false"
extractHint="DL,:,T,S" idHint="FL,0,5" B2BMap="" EAImap="O57A,O57C,O57D" />
          <lineAttribute id=":59:" isMandatory="true" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="M59" />
          <lineAttribute id=":70:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="O70" />
          <lineAttribute id=":77B:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O77B" />
<lineAttribute id=":33B:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O33B" />
          <lineAttribute id=":71A:" isMandatory="true" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="M71A" />
<lineAttribute id=":25A:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,5" B2BMap="" EAImap="O25A" />
          <lineAttribute id=":36:" isMandatory="false" extractHint="DL,:,T,S"
idHint="FL,0,4" B2BMap="" EAImap="O36" />
        </block>
     </block>
     <block id="5:" isMandatory="false" isList="false" termString="\r\n"
extractHint="BR,{,},T,S" idHint="FL,0,2" EAImap="B5">
          <lineAttribute id="MAC" isMandatory="true" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="MMAC" />
          <lineAttribute id="CHK" isMandatory="true" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="MCHK" />
          <lineAttribute id="TNG" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="OTNG" />
          <lineAttribute id="PDE" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="OPDE" />
          <lineAttribute id="SYS" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="OSYS" />
          <lineAttribute id="PDM" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="OPDM" />
          <lineAttribute id="DLM" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="ODLM" />
          <lineAttribute id="PAC" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="OPAC" />
          <lineAttribute id="MRF" isMandatory="false" extractHint="BR,{,},T,S"
idHint="FL,0,3" B2BMap="" EAImap="OMRF" />
     </block>
</block>