non-valid xml causes error