Compounds having carboxyl groups bound to a carbon atoms of six-membered aromatic rings containing halogen