Handles corrupt xml files now