5 - build xml file