XML submission cleanup