private void writeIndividual(Individual i,String label) throws IOException{
        try{
            fp.push("\t\t<"+label+" ref='"+i.recIdNumber+"'></"+label+">\n");
        }
        catch(NullPointerException e){
            fp.push("\t\t<"+label+"></"+label+">\n");
        }
        finally{
            fp.save();
        }
    }