WebStorm
 
Get WebStorm

Replace attribute with tag

Last modified: 26 May 2024

The Replace Attribute with Tag refactoring allows you to replace attribute definitions on a set of XMLs tag with equivalent sub-tags. If this refactoring is invoked, all attributes matching the selected attribute name on tags with the selected tag name may be removed, and equivalent sub-tags created. This bulk transformation of attributes to tags is useful as XML schemas evolve.