document instead of XMLDocument

XMLDocument is not loaded by jslint