script to run for all XML's