Upgraded script to comply with ITER requirements
Note: not generating csv, only xml