Implemented proxy xml cleanup using dom