---
title: "Feature: #59384 - XML parser options for xml2tree()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-59384"
source: "Changelog/7.4/Feature-59384-XMLParserOptionsForXml2tree.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Feature: #59384 - XML parser options for xml2tree()

See [forge#59384](https://forge.typo3.org/issues/59384)

## Description

`GeneralUtility::xml2tree()` gets an optional parameter: an array that can hold options for the parser.
Those will simply be passed through to the PHP-function xml_parser_set_option().

```php
GeneralUtility::xml2tree($xmlData, 999, array(XML_OPTION_SKIP_WHITE => 1));
```

## Impact

It's just an optional parameter. If you don't specify it, simply no additional initialisation of the XML-parser will be done.
