The highest temperature that can be reached by heating iron with X-rays would depend on several factors including:
the intensity and wavelength of the X-rays.
The duration of exposure.
The properties of the iron sample itself.
X-rays can heat materials by transferring energy to them through the process of photoelectric absorption, where the x-ray photons are absorbed by the atoms in the material.