public function loadXml($source, $options = 0)
    {
        $user_error_handling = $this->enableErrorHandling();

        $success = parent::loadXML($source, $options);

        $this->handleErrors(
            'Loading the document failed. Details are:' . PHP_EOL . PHP_EOL,
            PHP_EOL . 'Please fix the mentioned errors.',
            $user_error_handling
        );

        $this->refreshXpath();

        return $success;
    }