---
title: "parse xml · RUAL Documentation"
description: "Parse an XML file into an object with XML attributed data"
canonical: https://docs.rual.nl/block-types/files/file_parse_xml_v2
language: en
---

# parse xml

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

Parse an XML file into an object with XML attributed data

- flow `flow`

- file required `file`

- normalize `condition` Transforms the keys to lowercase

Default `false`

- strip prefix `condition` Strips the xml namespace prefix from the keys

Default `false`

- parse numbers `condition` Parses integer-like strings and float-like strings as floats

Default `false`

- parse booleans `condition` Parses boolean-like strings to booleans

Default `false`

- flow `flow`

- object `object`

- success `condition`

- error `value`

A typical wiring for [parse xml](https://docs.rual.nl/block-types/files/file_parse_xml_v2): 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 xml block: typical wiring for parse xml.](https://docs.rual.nl/canvas-examples/file_parse_xml_v2.png)

### Version history

Introduced in [`v12.0.4`](https://docs.rual.nl/core-versions/120004).
