This tutorial is an introduction for the
first steps with the
MessageObjects library. For a complete API documentation,
visit our JAVA- or .NET API Reference:
JAVA
API Reference
.NET API Reference
I. Introduction
What is S.W.I.F.T.?
Society for Worldwide International Financial Telecommunication
See www.swift.com
Financial transactions are described by standardised
structured message types containing field identifiers
("tags") and which follow construction rules
such as mandatory or optional field, repetitive sequences,
etc.
What is XML?
eXtensible Markup Language, derived from SGML as is
HTML. Where HTML is used for document layout, XML is
used for data description.
See www.w3.org/xml
XML documents contain nodes identified by node names.
If a data type dictionary (DTD) or Schema exist for
the XML document, then rules can be defined such as
mandatory or optional nodes, repetitive sequences, etc.
What is MessageObjects?
Obviously there are similarities in the structure of
SWIFT messages and of XML documents.
One of the problems of handling SWIFT messages is that
the rules are hard to interpret and the format needs
to be analysed and programmed with great effort. It
is especially difficult to identify the correct branch
of a message and extract relevant data for processing.
Also the correct syntactical construction of SWIFT messages
is difficult and error prone.
MessageObjects is an API containing a library of XML,
DTD and XSLT files with methods allowing easy transformation
between SWIFT and XML.
The great benefit for the user of MessageObjects is
that XML is handled by commercially available parsers
which interpret the structure.
Although familiarity with SWIFT and XML is necessary
to work with MessageObjects, the methods provided hide
most of the underlying technology, so that a quick start
is possible.
Naturally, in-depth knowledge of both SWIFT and XML
will allow more sophisticated usage, such as writing
XSLT to create customised layouts.
The following tutorial will guide
you through some typical usage examples.
Only 2 message types are used for all examples: MT200
and MT502. MT200 is extremely simple, MT502 is an ISO15022
type message and is quite complex (containing sequences
and repetitions).
Please note that the tutorial was created with the .NET
version of MessageObjects, which may vary slightly from
the Java version.
II. Swift to XML > |