write to xtl