public SitemapIndex GenerateSitemapIndex(List <SitemapInfo> sitemaps, DirectoryInfo targetDirectory, string targetSitemapFileName)
        {
            var sitemapIndex = new SitemapIndex(sitemaps);

            _serializedXmlSaver.SerializeAndSave(sitemapIndex, targetDirectory, targetSitemapFileName);
            return(sitemapIndex);
        }
        public void GenerateSitemapIndex(List<SitemapInfo> sitemaps, DirectoryInfo targetDirectory, string targetSitemapFileName)
        {
            var sitemapIndex = new SitemapIndex(sitemaps);

            _serializedXmlSaver.SerializeAndSave(sitemapIndex, targetDirectory, targetSitemapFileName);
        }