original_string: private function dumpXmlErrors($xmlFile) {
  
  		$severity = [LIBXML_ERR_WARNING => 'Warning', LIBXML_ERR_ERROR => 'Error', LIBXML_ERR_FATAL => 'Fatal'];
  		$errors = [];
  
  		foreach(libxml_get_errors() as $error) {
  			$errors[] = sprintf("Row %d, column %d: %s (%d) %s", $error->line, $error->column, $severity[$error->level], $error->code, $error->message);
  		}
  
  		throw new ConfigException(sprintf("Could not parse XML configuration in '%s'.\n\n%s", $xmlFile, implode("\n", $errors)));
  
  	}
code: private function dumpXmlErrors($xmlFile) {
  
  		$severity = [LIBXML_ERR_WARNING => 'Warning', LIBXML_ERR_ERROR => 'Error', LIBXML_ERR_FATAL => 'Fatal'];
  		$errors = [];
  
  		foreach(libxml_get_errors() as $error) {
  			$errors[] = sprintf("Row %d, column %d: %s (%d) %s", $error->line, $error->column, $severity[$error->level], $error->code, $error->message);
  		}
  
  		throw new ConfigException(sprintf("Could not parse XML configuration in '%s'.\n\n%s", $xmlFile, implode("\n", $errors)));
  
  	}
code_tokens: private function dumpXmlErrors ( $ xmlFile ) { $ severity = [ LIBXML_ERR_WARNING => 'Warning' , LIBXML_ERR_ERROR => 'Error' , LIBXML_ERR_FATAL => 'Fatal' ] ; $ errors = [ ] ; foreach ( libxml_get_errors ( ) as $ error ) { $ errors [ ] = sprintf ( "Row %d, column %d: %s (%d) %s" , $ error -> line , $ error -> column , $ severity [ $ error -> level ] , $ error -> code , $ error -> message ) ; } throw new ConfigException ( sprintf ( "Could not parse XML configuration in '%s'.\n\n%s" , $ xmlFile , implode ( "\n" , $ errors ) ) ) ; }
docstring: Create formatted output of XML errors
  
  @param string $xmlFile
  @throws ConfigException
docstring_tokens: Create formatted output of XML errors