Deprecation: #75371 - array2xml_cs

See Issue #75371


The method GeneralUtility::array2xml_cs() has been marked as deprecated.


Using the method GeneralUtility::array2xml_cs() will trigger a deprecation log entry.

Affected Installations

All installations with third party extensions using this method are affected.


Use GeneralUtility::array2xml() instead. The XML declaration must be written manually.

Example code: .. code-block:: php

// Deprecated $bodyText = GeneralUtility::array2xml_cs($array, ‘phparray’);

// Migrated $bodyText = ‘<?xml version=”1.0” encoding=”utf-8” standalone=”yes” ?>’ . LF . GeneralUtility::array2xml($array, ‘’, 0, ‘phparray’);