private Composante ajouterComp(Element n) {
        
        Composante comp;
        
        switch(n.getNodeName()) {
            case "RESISTANCE" :
                double resistanceEqui = Double.parseDouble(getInfo("VALEUR", n));
                int ID = Integer.valueOf(getInfo("ID", n));
                
                comp = new Resistance(resistanceEqui, ID);
                return comp;
            case "BRANCHE" :
                int IDBranche = Integer.valueOf(getInfo("ID", n));
                
                comp = new Serie(IDBranche);
                
                NodeList element = n.getElementsByTagName("COMPOSANTE");
                Element elemtemp = (Element) element.item(0);

                NodeList para = elemtemp.getElementsByTagName("PARALLELE");
                NodeList resis = elemtemp.getElementsByTagName("RESISTANCE");
                
                for(int i = 0; i < para.getLength(); i++) {
                    if(para.item(i).getParentNode().equals(elemtemp))
                    ((Serie)comp).ajouterComposante(ajouterParallele((Element) element.item(i)));
                }
                for(int i = 0; i < resis.getLength(); i++) {
                    if(resis.item(i).getParentNode().equals(elemtemp))
                    ((Serie)comp).ajouterComposante(ajouterComp((Element)resis.item(i)));
                }
                
                return comp;
            default :
                return null;
        }
    }