protected function loadXML($path)
{
if (!isset($this->cacheXMLEmelemt[$path])) {
try {
$xml = simplexml_load_file($path);
} catch (\Exception $e) {
$xml = FALSE;
}
if ($xml === FALSE) {
$this->getErrorHandler()->error(ThemeErrors::XML_INVALID, $path);
return NULL;
}
$this->cacheXMLEmelemt[$path] = $xml;
} else {
$xml = $this->cacheXMLEmelemt[$path];
}
return $xml;
}