Sitecore-Sitemap splitting into multiple files based on languages code
First, generate the sitemap for the Multi-Language website using an any online tool available, it will generate a sitemap for all the pages into a single file with different language code URLs. Lets split the sitemap to individual language specific sitemap file for easy SEO access. XDocument document = XDocument .Load( "D:\\sitemap.xml" ); var books = from r in document.Descendants( "url" ) select new { loc = r.Element( "loc" ).Value.ToLower(), lastmod = r.Element( "lastmod" ).Value, priority = r.Element( "priority" ).Value }; //EN language sitemap XmlTextWriter enwriter = new XmlTextWriter ( "D:\\sitemap-en.xml" , System.Text. Encoding .UTF8); enwriter.WriteStartDocument( true ); enwri