speed up txt2xml