Applies a list of operations to an XML file, to all files matching a pattern, or to XML text. Only the modified nodes change: formatting, comments, quotes, attribute order, encoding, byte order mark and line endings are preserved byte for byte. If any operation fails (on any file), nothing is written. The result includes the previous values of what was changed. Environment variables such as $VERSION are expanded in all fields.