In X-ray diffraction a beam strikes a crystal and diffracts into many specific directions.
X-ray diffraction is a form of elastic scattering; the outgoing X-rays have the same energy, and thus same wavelength, as the incoming X-rays, only with altered direction.