Fix: Updated XMLContentsToString to be IE9 compatible