google sitemaps and custom tags

牧云@^-^@ 提交于 2019-12-10 11:35:30

问题


I would like to add a custom tag or attribute to the google sitemap for internal use. I can't find any documentation on this so I would like to ask if anybody has done something similar?


回答1:


You can't add your own tags to an XML sitemap as they are not valid as described in the schema. If you do this you run the risk of the sitemap being rejected or causing errors.




回答2:


I am using custom attributes (seem to work fine) and elements (cause errors, but are ignored by Google Webmaster Tools).

See details here: https://stackoverflow.com/a/32628830/1117929



来源:https://stackoverflow.com/questions/7174164/google-sitemaps-and-custom-tags

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!