private void parseXMLFile(File tempFile) {
        try {
            AFManager.processXML(tempFile);
        } catch (JAXBException ex) {
            invalidAFLoaded("Error parsing xml file.");
        }
        
        String error = AFManager.validateAF();
        
        if(!error.isEmpty()){
            invalidAFLoaded(error);
            return;
        }
        
        validAFLoaded();
    }