clear button and build xml files