[FEATURE] XML parser options for xml2tree()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-59384-XMLParserOptionsForXml2tree.rst
1 ===================================================
2 Feature: #59384 - XML parser options for xml2tree()
3 ===================================================
4
5 Description
6 ===========
7
8 GeneralUtility::xml_parser_set_option() 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().
9
10 .. code-block:: php
11
12 GeneralUtility::xml2tree($xmlData, 999, array(XML_OPTION_SKIP_WHITE => 1));
13
14
15 Impact
16 ======
17
18 It's just an optional parameter. If you don't specify it simply no additional initialisation of the XML-parser will be done.