talk to TomH's changes for XML error reporting and conditional deletes