MT to MX Migration: Unveiling XML Schema and Instances in SWIFT MX Messaging

How is XML used as building blocks in MX Messages? What is XML schema and instance in SWIFT MX messages? Read on.

What is XML 'Schema' and 'Instance'?

MT to MX Migration

As we learnt earlier, SWIFT MX messages are built using XML (EXtensible Markup Language). There are two concepts to understand here - XML Message schema and XML message instance.

You can imagine an XML schema as a rule-book about what an XML document following that schema can contain or cannot contain. For example, it defines what elements can occur, the number of and order of the child elements, the data types of the elements etc. Any XML document that will follow the rules specified in that schema will become an instance of that schema. So the XML schema is like the mother and the XML instance is like its baby. A schema document has the file extension of .xsd (xml schema definition) whereas an xml instance or document has file extension of .xml. A XSD file is written using the XML language itself. 

Want to learn more about SWIFT?

SWIFT MT AND ISO 20022 MX MESSAGES | 3-IN-1 COURSE PACKAGE
View Details

XML Instances in MX Messages

Xml schema and instances

An XML schema can contain the definitions of, suppose, 100 elements. There may be multiple instances of a single schema. It's not mandatory for those instances to contain all the 100 elements. One instance can contain only 10 elements, another can contain 30 elements defined in the schema, but all those elements that appear in the instance must follow the rules defined in the schema.

So, in the ISO 20022 website, you will find all the base or the mother message schema definitions. For example, the pacs.008 or pacs.009 message schemas. When an actual pacs.008 message is created, it must follow the rules defined in this schema. But this schema defines hundreds of elements which a pacs.008 message can contain. The actual message, which you may call the message instance, may contain only a few elements from that schema which are required for that particular payment infrastructure and payment purpose.


WANT TO READ MORE?

Sign Up to get notifications of future blog posts 

Sign up/ Login

Already signed up/ logged in? Then you are all set!


You may be interested in

Part 1: Beginner's Guide - SWIFT Message Types - MT and MX ISO 20022

Part 1: Beginner's Guide - SWIFT Message Types - MT and MX ISO 20022

Basics of Payments | SWIFT MT/ MX Payment Message Types with examples | SWIFT GPI

View Details

Part 2: Advanced Guide - ISO 20022 SWIFT MX Messages

Part 2: Advanced Guide - ISO 20022 SWIFT MX Messages

CBPR+ Usage Guidelines | XML and Messages Schema | Messages Structure | MX Messages Examples

View Details

SWIFT MT and ISO 20022 MX Messages | 3-in-1 Course Package

SWIFT MT and ISO 20022 MX Messages | 3-in-1 Course Package

The Ultimate No-Nonsense Guide to SWIFT MT and ISO 20022 MX Message Types

View Details