in reply to XML / regex - cleaning up attributes
Total agreement with both of the AnonyMonk replies above. The data supplier needs to be made aware that their output is faulty and needs to be fixed; also, you really don't want (or need) to delete anything -- just fix the basic mistake.