Googleが推奨するモバイルサイトマップヘッダーを自分のページに追加しようとしています。これは次のとおりです。
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">
参照:http ://support.google.com/webmasters/bin/answer.py?hl = en&answer = 34648
これを使用する場合(C#):
sitemap.WriteStartElement("urlset", "http://www.sitemaps.org/schemas/sitemap/0.9");
次のxmlが生成されます。
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
プレフィックスを付けて行う場合:
sitemap.WriteStartElement("mobile", "urlset", "http://www.google.com/schemas/sitemap-mobile/1.0");
次に、次のようになります。
<mobile:urlset mobile:xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
どうすればこれを達成できますか?:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">