Make sure that an imported XML file is valid