$xml_string = file_get_contents('books.xml'); $books_array = t3lib_div::xml2array($xml_string);The xml2array function will parse the XML string and convert it into a multidimensional array, with each level representing a node in the XML document. The package library for t3lib_div is the TYPO3 CMS Core. This library is included in the Core installation and is used by developers to build extensions for TYPO3. Developers can also use this library in other PHP projects not related to TYPO3.