Removing attributes, elements from XML for sanitization