private function getXmlErrorMessage()
    {
        $errors = libxml_get_errors();
        if (count($errors)) {
            /** @var \LibXMLError $error */
            $error = array_shift($errors);
            return $error->message;
        }

        return 'Unknown error withing SimpleXML parser occured.';
    }