How to parse XML in Swift

Functions of the SWIFT disassembler and assembler

  • 2 minutes to read

The SWIFT disassembler can perform the following tasks when called in a BizTalk Server receive pipeline:

  • Dynamic determination of the message type and resolution of the document schema. This means that a single receiving port and pipeline can process several types of SWIFT messages.

  • Analyze a SWIFT flat file in XML.

  • Call the XML Validation Reader to perform XML (schema) validation, e.g. b. Checking the data type validity, the data format or the length conformity.

  • Call the business rules engine to run the business rules engine (BRE), e.g. b. Checking compliance with SWIFT network rules or performing other complex validations that are supported by the schema

  • Publish a parsed XML message to the MessageBox database with promoted context properties and serialized XML error collection (providing information about errors that occurred during parsing or validation).

    Note

    If the disassembler encounters fatal errors during the parsing, the disassembler publishes the message in the MessageBox database in native flat file format and not in XML.

  • Process incoming batches as follows:

    • Analyze and maintain batch envelopes (batch header, batch trailer)

    • Analyze and maintain message envelopes (message header, message trailer)

    • Rapid analysis and validation of SWIFT messages in batch

    • Quickly publish SWIFT messages in the MessageBox database

    • Publish the entire incoming batch in the MessageBox database as a single message (exact copy of the input)

    • Promote batch-related context properties to sort or correlate messages that come from the same batch

    The SWIFT assembler can perform the following tasks when called in a BizTalk send pipeline:

  • Dynamic determination of the message type and resolution of the document schema. This means that a single send port and a pipeline can process several types of SWIFT messages.

  • Serialization of analyzed XML data into a SWIFT flat file.

additional Information

Working with the SWIFT disassembler and assembler

Is this page helpful?