xml cleanup