read & writer xtm recode