xml parsing fix for firefox

have yet to do testing in IE