Google webmaster FAQs suggest that this will exclude all xml files from search:
Is this legal for other bots as well?
Yes, this is valid. Whether other bots actually understand and obey is completely up to them, though!
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago