src/SitemapParser.php
protected function isSitemapURL($url)
    {
        $path = parse_url($this->urlEncode($url), PHP_URL_PATH);
        return $this->urlValidate($url) && (
            mb_substr($path, -mb_strlen(self::XML_EXTENSION) - 1) == '.' . self::XML_EXTENSION ||
            mb_substr($path, -mb_strlen(self::XML_EXTENSION_COMPRESSED) - 1) == '.' . self::XML_EXTENSION_COMPRESSED
        );
    }
protected function isSitemapURL($url)
    {
        $path = parse_url($this->urlEncode($url), PHP_URL_PATH);
        return $this->urlValidate($url) && (
            mb_substr($path, -mb_strlen(self::XML_EXTENSION) - 1) == '.' . self::XML_EXTENSION ||
            mb_substr($path, -mb_strlen(self::XML_EXTENSION_COMPRESSED) - 1) == '.' . self::XML_EXTENSION_COMPRESSED
        );
    }
protected function isSitemapURL ( $ url ) { $ path = parse_url ( $ this -> urlEncode ( $ url ) , PHP_URL_PATH ) ; return $ this -> urlValidate ( $ url ) && ( mb_substr ( $ path , - mb_strlen ( self :: XML_EXTENSION ) - 1 ) == '.' . self :: XML_EXTENSION || mb_substr ( $ path , - mb_strlen ( self :: XML_EXTENSION_COMPRESSED ) - 1 ) == '.' . self :: XML_EXTENSION_COMPRESSED ) ; }
Check if the URL may contain an Sitemap

@param string $url
@return bool
Check if the URL may contain an Sitemap