trim spaces from XML files