remove white space at the end of both xml files