问题
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