log errors for bad xml