Added function for removing duplicates from xml file