handle invalid xml file