Extract data from xml files