Assuming that you have this starting material: COOH is a de-activating m- directing group while CH2NH2 are o- & p- directing. The o- positions of COOH are open to electrophilic substitution reaction so transferring the COOH to COOR where: R is a bulky group e.g. t-butyl may block these o- positions. Halogenation reaction then might occurs at the o- position lying between the two aminomethyl groups. Replacing X by OH group could take place by many methods; see