Gets error information and put them in a .xml file