---
title: "parse mt940 · RUAL Documentation"
description: "Parse a MT940 defined XML file into an array of statements."
canonical: https://docs.rual.nl/block-types/files/function_parse_mt940
language: en
---

# parse mt940

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Parse a MT940 defined XML file into an array of statements.

- flow `flow`

- file required `file` The MT940 file to be parsed.

- flow `flow`

- statements `array` An array of objects containing the parsed statements of the provided MT940 file.

A typical wiring for [parse MT940](https://docs.rual.nl/block-types/files/function_parse_mt940): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [get file from assets](https://docs.rual.nl/block-types/files/file_from_assets) feeds the `file` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the parse MT940 block: typical wiring for parse MT940.](https://docs.rual.nl/canvas-examples/function_parse_mt940.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
