XML sitemap remove xmlns from url tag
问题 I am using the below lines to generate sitemap but google says there is an error. I know the error but i am unable to figure out how to remove the tag. THe code @using System.Xml.Linq; @{ Layout = null; var urls = new List<string>{ "1", "2", "3" }; XNamespace ns = "http://www.sitemaps.org/schemas/sitemap/0.9"; var baseurl = "http://www.myurl.in/{0}"; var sitemap = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement(ns + "urlset", from url in urls select new XElement("url",