parses identity information from an xml file.