extract data from xml file