Exclude deleted records

xpath changed to exclude deleted records in output