util/gen_xmlpool: use with statement to open file