saveDocument();
saveDocument(projectXML);
	public void addUser(String projectName, String login, boolean pmanager, boolean architect, boolean analyst,boolean redactor)	{		XPath xpath = XPathFactory.newInstance().newXPath();		String expression = "//project[@name='"+projectName+"']";				UsersParser user = UsersParser.getInstance();				if(user.isUser(login))		{			Element elem = null;			Element newElem = doc.createElement("user");						try {				elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);			}			catch (XPathExpressionException e) {				e.printStackTrace();			}			if ( elem != null ) {				newElem.setAttribute(ATTR_LOGIN, login);				//Creation du node rights				Element rightsNode = doc.createElement("rights");				newElem.appendChild(rightsNode);				// Ajout des balises				if (pmanager) {					Element newRight = doc.createElement(RIGHT_PMANAGER);					rightsNode.appendChild(newRight);				}				if (architect) {					Element newRight = doc.createElement(RIGHT_ARCHITECT);					rightsNode.appendChild(newRight);				}				if (analyst) {					Element newRight = doc.createElement(RIGHT_ANALYST);					rightsNode.appendChild(newRight);				}				if (redactor) {					Element newRight = doc.createElement(RIGHT_REDACTOR);					rightsNode.appendChild(newRight);				}								elem.appendChild(newElem);				saveDocument();				System.out.println("Ajout de l'utilisateur "+login+" effectue");//debug			}			else {				System.out.println("Ajout de l'utilisateur "+login+" impossible!"); 			}		}		else{			System.out.println("Ajout de l'utilisateur "+login+" impossible!(user inexistant)");		}	}