---
title: "Deprecation: #75371 - array2xml_cs"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-75371"
source: "Changelog/8.1/Deprecation-75371-Array2xml_cs.rst"
typo3-version: "8.1"
typo3-major: 8
type: "deprecation"
issue: 75371
forge: "https://forge.typo3.org/issues/75371"
tags: ["PHP-API"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #75371 - array2xml_cs {#deprecation-75371}

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

## Description {#description}

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

## Impact {#impact}

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

## Affected Installations {#affected-installations}

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

## Migration {#migration}

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

Example code:

```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');
```
