sample.xml To $xmlArray

$xmlContent = file_get_contents($this->getTemplateRootPath().'sample.xml');
$xmlArray = GeneralUtility::xml2array($xmlContent);