remove redundant xml