我生成一个 sitemap.xml
XDocument xDoc = new XDocument(
new XDeclaration("1.0", "UTF-8", ""),
new XElement("urlset",
new XAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9"),
new Element (....and so on...)
我收到一个错误
前缀 '' 不能在同一起始元素标记中从 '' 重新定义为 ' http://www.sitemaps.org/schemas/sitemap/0.9 '。
Google 要求没有任何前缀的 xmlns 属性。