Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleContents

Table of Contents
indent15px
stylenone

XML2MT transforms XML instances conforming to the schemas issued by SWIFT in SWIFT Standards Developer Kit (SDK) to SWIFT Message Type (MT) messages.

Configuration and Testing

Component Configuration


Figure 1: XML2MT Configuration

Attributes

For information about the below attributes, please refer to the respective sections in MT2XML page.

  • Error Handling Configuration
  • Standard Release MT Year
  • Message Schema File

Testing

Input and Output

Sample Input

A sample XML message is as below (please expand).

Code Block
languagexml
collapsetrue
A sample XML instance of message type MT101 – Request for Transfer
 <?xml version="1.0" encoding="UTF-8"?>
 <FinMessage xmlns="urn:swift:xsd:mtmsg.2012"><!-line=0->
 <Block1>
 <ApplicationIdentifier>F</ApplicationIdentifier>
 <ServiceIdentifier>01</ServiceIdentifier>
 <LogicalTerminalAddress>BNKACH22BIC0</LogicalTerminalAddress>
 <SessionNumber>0000</SessionNumber>
 <SequenceNumber>000000</SequenceNumber>
 </Block1><!-line=0->
 <Block2>
 <InputIdentifier>I</InputIdentifier>
 <MessageType>101</MessageType>
 <DestinationAddress>BNKAGB22XBIC</DestinationAddress>
 <MessagePriority>U</MessagePriority>
 <DeliveryMonitoring>3</DeliveryMonitoring>
 <ObsolescencePeriod>005</ObsolescencePeriod>
 </Block2><!-line=0->
 <Block3><!-line=0->
 <F113>XXXX</F113>
 </Block3><!-line=0->
 <Block4>
 <Document xmlns="urn:swift:xsd:fin.101.2012">
 <MT101>
 <SeqA>
 <F20a><!-line=1->
 <F20>FILEREF1</F20>
 </F20a>
 <F21a><!-line=2->
 <F21R>UKSUPPLIER090901</F21R>
 </F21a>
 <F28a><!-line=3->
 <F28D>
 <MessageIndex>1</MessageIndex>
 <Total>1</Total>
 </F28D>
 </F28a>
 <F50a_2><!-line=4->
 <F50H>
 <Account>8754219990</Account>
 <NameAndAddress>
 <Line>MAG-NUM INC.</Line>
 <Line>GENERAL A/C</Line>
 <Line>BANHOFFSTRASSE 30</Line>
 <Line>ZURICH, SWITZERLAND</Line>
 </NameAndAddress>
 </F50H>
 </F50a_2>
 <F30a><!-line=9->
 <F30>090905</F30>
 </F30a>
 </SeqA>
 <SeqB>
 <F21a_1><!-line=10->
 <F21>TRANSREF1</F21>
 </F21a_1>
 <F32a><!-line=11->
 <F32B>
 <Currency>GBP</Currency>
 <Amount>12500,</Amount>
 </F32B>
 </F32a>
 <F59a><!-line=12->
 <F59>
 <Account>1091282</Account>
 <NameAndAddress>
 <Line>Beneficiary 1</Line>
 <Line>LOW STREET 1</Line>
 <Line>LONDON, UK</Line>
 </NameAndAddress>
 </F59>
 </F59a>
 <F71a><!-line=16->
 <F71A>OUR</F71A>
 </F71a>
 </SeqB>
 </MT101>
 </Document>
 </Block4>
 </FinMessage> 

Output

Output of the component for the above sample input.

{1:F01BNKACH22BIC00000000000}{2:I101BNKAGB22XBICU3005}{3:{113:XXXX}}{4:

:20:FILEREF1

:21R:UKSUPPLIER090901

:28D:1/1

:50H:/8754219990

MAG-NUM INC.

GENERAL A/C

BANHOFFSTRASSE 30

ZURICH, SWITZERLAND

:30:090905

:21:TRANSREF1

:32B:GBP12500,

:59:/1091282

Beneficiary 1

LOW STREET 1

LONDON, UK

:71A:OUR

-}

Note

An exception is thrown if the input is not a valid SWIFT MT message.

Adaptavist ThemeBuilder EngineAtlassian Confluence