Create/Update/Delete-Repository/Policy: Truncate file before writing out new XML