catch xml error