Change XML attribute key

Apache 2.0

Change an attributes key on XML elements using an XPath expression.

org.openrewrite.xml.ChangeTagAttributeKey

Required

XPath expression to match the attribute.

The new name for the attribute.

mod run . --recipe=org.openrewrite.xml.ChangeTagAttributeKey \ -P xPath=//a4j:ajax/@reRender \ -P newAttributeName=render

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