Fixed Scoping Issue with DOMParser that caused xml parser to crash on browsers