Magnetic circular dichroism (MCD) in the x-ray absorption spectroscopy (XAS) at the L2,3 edges for almost entire series of rare-earth (RE) elements in RE2Fe14B, is studied experimentally and theoretically. By a quantitative comparison of the complicated MCD spectral shapes, we find that (i) the 4f-5d intra-atomic exchange interaction not only induces the spin and orbital polarization of the 5d states, which is vital for the MCD spectra of the electric dipole transition from the 2p core states to the empty 5d conduction band, but also it accompanies a contraction of the radial part of the 5d wave function depending on its spin and orbital state, which results in the enhancement of the 2p-5d dipole matrix element, (ii) there are cases where the spin polarization of the 5d states due to the hybridization with the spin polarized 3d states of surrounding irons plays important roles, and (iii) the electric quadrupole transition from the 2p core states to the magnetic vale! nce 4f states is appreciable at the pre-edge region of the dipole spectrum. Especially, our results evidence that it is important to include the enhancement effect of the dipole matrix element in the correct interpretation of the MCD spectra at the RE L2,3 edges.