Parse xml file for 'Error' element. Get error message string and write to file'