Measurement of attenuation length of drifting electrons in liquid xenon