public function xinclude($options = 0)
    {
        $user_error_handling = $this->enableErrorHandling();

        $number_of_xincludes = parent::xinclude($options);

        $this->handleErrors(
            'Resolving XInclude directives in the current document failed. Details are:' . PHP_EOL . PHP_EOL,
            PHP_EOL . 'Please fix the XInclude directives according to the mentioned errors.',
            $user_error_handling
        );

        return $number_of_xincludes;
    }