saveDocument();
saveDocument(projectXML);
	private void setRight(String projectName, String login, String right, boolean value){		XPath xpath = XPathFactory.newInstance().newXPath();		String expression = "//project[@name='"+projectName+"']/user[@login='"+login+"']";		Element elem = null;				try {			elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);		}		catch (XPathExpressionException e) {			e.printStackTrace();		}		//si l'utilisateur est bien present		if ( elem != null ) {			//Cas TRUE: on ajoute la balise correspondante si elle n'existe pas deja			if (value) { 				expression = "//project[@name='"+projectName+"']/user[@login='"+login+"']/rights/" + right;				try {					elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);				}				catch (XPathExpressionException e) {					e.printStackTrace();				}				//il faut ajouter la balise				if (elem == null) {					expression = "//project[@name='"+projectName+"']/user[@login='"+login+"']/rights";					try {						elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);					}					catch (XPathExpressionException e) {						e.printStackTrace();					}					Element newRight = doc.createElement(right);					elem.appendChild(newRight);					saveDocument();				}			}			//Cas FALSE: On retire la balise correspondante si elle existe			else { 				expression = "//project[@name='"+projectName+"']/user[@login='"+login+"']/rights/" + right;				try {					elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);				}				catch (XPathExpressionException e) {					e.printStackTrace();				}				//il faut retirer la balise				if (elem != null) { 					String parentExpr = "//project[@name='"+projectName+"']/user[@login='"+login+"']/rights";					Element parentElem = null;					try {						parentElem = (Element)xpath.evaluate(parentExpr, this.doc, XPathConstants.NODE);					}					catch (XPathExpressionException e) {						e.printStackTrace();					}					parentElem.removeChild(elem);					saveDocument();				}			}		}		else {			System.out.println("Modification droit "+ right + " pour l'utilisateur "+login+ " impossible!");		}	}