Added code to modify and delete records from xml