Add xml parsing error logging