reader of data file with the format specified by XML file