Attention
TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
Parsing a Data Structure¶
You can convert a Data Structure XML document into a PHP array by using the
function \TYPO3\CMS\Core\Utility\GeneralUtility::xml2array()
.
The reverse transformation is achieved using
\TYPO3\CMS\Core\Utility\GeneralUtility::array2xml()
.
If the Data Structure uses referenced sheets, for example
<T3DataStructure>
<sheets>
<sDEF>fileadmin/sheets/default_sheet.xml</sDEF>
<s_welcome>fileadmin/sheets/welcome_sheet.xml</s_welcome>
</sheets>
</T3DataStructure>
Additional operations must be performed to resolve the sheet's content. See
class FlexFormTools
.