Change XML tag name

Apache 2.0

Alters the name of XML tags matching the provided expression.

org.openrewrite.xml.ChangeTagName

Required

The name of the element whose attribute's value is to be changed. Interpreted as an XPath expression.

The new name for the tag.

mod run . --recipe=org.openrewrite.xml.ChangeTagName \ -P elementName=/settings/servers/server/username \ -P newName=user

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.