fixed error when some xml data fails. code checkpoint.