Change XML attribute of a specific resource version
Apache 2.0Alters XML Attribute value within specified element of a specific resource versions.
org. openrewrite. xml. ChangeNamespaceValueRequired
The new value to be used for the namespace.
The new version of the resource
Optional
The name of the element whose attribute's value is to be changed. Interpreted as an XPath Expression.
Only change the property value if it matches the configured oldValue.
The version of resource to change
searchAllNamespacesBoolean
Specify whether evaluate all namespaces. Defaults to true
The new value to be used for the namespace schema location.
mod run . --recipe= org. openrewrite. xml. ChangeNamespaceValue \
-P newValue= newfoo. bar. attribute. value. string \
-P newVersion=2.0Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.