I would like to programmatically modify some XML files but I end up adding some modifications inadvertently. For example consider the following XML: