Rename all attributes named "id" to "ID"

xml edit

xml edit --rename "{{//*/@id}}" -v "{{ID}}" {{path/to/input.xml|URI}}

click the source code to copy install xml edit on any operating system with command-not-found.com