Below is a Python Script, which will change ALL occurrences of Damage to 50% of their value,:
import xml.etree.ElementTree as ET def is_float(value): try: float(value) return True except: return False root = ET.XML(editor.getText()) for damage in root.findall(".//Damage"): if damage is not None and damage.text is not None and len(damage.text) > 0 and is_float(damage.text): value = float(damage.text.strip()) * 0.5 damage.text = "{:.6f}".format(value) editor.setText(ET.tostring(root))