[TYPO3-german] XML Parser Problem
Christian Knauf
knauf at analog.de
Tue Dec 2 13:44:26 CET 2014
Hallo,
es sind leider immer verschiedenen XML oder XLF Dateien. In den Dateien sind jeweils Entities. Es sind allerdings immer Core Language.xml Dateien. Daher denke ich, das es eine Server bzw. PHP Einstellung ist, der diese Fehler hervorruft.
Ich habe im TYPO3 Core die Stelle gefunden, die den Fehler erzeugt:
\TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser
Zeile 158-167
/**
* Reads and parses XML file and returns internal representation of data.
*
* @param string $targetPath Path of the target file
* @return array
* @throws \TYPO3\CMS\Core\Localization\Exception\InvalidXmlFileException
*/
protected function parseXmlTargetFile($targetPath) {
$rootXmlNode = FALSE;
if (file_exists($targetPath)) {
$rootXmlNode = simplexml_load_file($targetPath, 'SimpleXmlElement', \LIBXML_NOWARNING);
}
if (!isset($rootXmlNode) || $rootXmlNode === FALSE) {
throw new \TYPO3\CMS\Core\Localization\Exception\InvalidXmlFileException('The path provided does not point to existing and accessible well-formed XML file (' . $targetPath . ').', 1278155987);
}
return $this->doParsingTargetFromRoot($rootXmlNode);
}
More information about the TYPO3-german
mailing list