If you want all '<PassOrFile>Fail' changed to '<PassOrFail>Pass' you have straight forward replace, perhaps with a regexp if <PassOrFail> is elsewhere in xml record. If you need to set specific values for specific records, your looking at parsing the xml (SAX, DOM, take you pick) and re-writing the record.