Handle incorrect xml file