Use DOMParser instead of XHR to fix Windows download issue.