Extract data from XML file