X-ray absorption near-edge study has revealed that Eu in EuRh3B2 is in a pure trivalent state while it exhibits a mixed-valence behaviour in EuFe4Al8. The average valency of Eu in EuFe4Al8 is found to be 2.9+or-0.05 at 300K.