IE does not like parentElement for XML, so now using parentNode