public HashMap getAllProfils() {

        HashMap<String, Profil> liste = new HashMap<>();
        File folder = new File("users");
        File[] listOfFiles = folder.listFiles();
        
        for (int i = 0; i < listOfFiles.length; i++) {
            if (listOfFiles[i].isFile() && listOfFiles[i].getName().endsWith(".xml")) {
                try {

                    SAXBuilder builder = new SAXBuilder();
                    Document document = (Document) builder.build(listOfFiles[i]);
                    Element rootNode = document.getRootElement();
                    Profil p = new Profil();
                    
                    // ID
                    Element id = rootNode.getChild("id");
                    p.setId(id.getAttributeValue("id"));
                    
                    // Nom
                    Element nom = rootNode.getChild("nom");
                    p.setNom(nom.getAttributeValue("nom"));
                    
                    // Parties
                    List list = rootNode.getChildren("partie");
                    HashMap<String,Partie> parties = new HashMap<>();
                    for (int j = 0; j < list.size(); j++) {
                        
                        Element partie = (Element) list.get(j);
                        String idPartie = partie.getAttributeValue("id");
                        Partie laPartie = this.getPartie(idPartie, p);
                        parties.put(laPartie.getId(), laPartie);
                        
                    }
                    p.setParties(parties);
                    
                    liste.put(p.getNom(), p);
                    
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(DAO_Sauvegarde.class.getName()).log(Level.SEVERE, null, ex);
                } catch (JDOMException | IOException ex) {
                    Logger.getLogger(DAO_Sauvegarde.class.getName()).log(Level.SEVERE, null, ex);
                } 
            }
        }
        
        return liste;

    } // getAllProfils()