improving xmltomf to speed up its process