cleaning xml processing