code: protected static function getError(/*# string */ $path)/*#: string */
      {
          libxml_use_internal_errors(true);
          simplexml_load_file($path, null, \LIBXML_NOERROR);
          return libxml_get_errors()[0]->message;
      }
docs: {@inheritDoc}