use pickle to store xml, with the purpose of saving time