Extense refactoring for XML attributes