WebStorm
 
Get WebStorm

Replace tag with attribute

Last modified: 26 May 2024

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