simplify parse error in xml