Error checking in parsing added, to prevent duplicate entries in the XML file.