xml clean-up