fixed the XML reader to work with a list of cases