elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE); oldElem = (Element)xpath.evaluate(expr, this.doc, XPathConstants.NODE);
child = (Element)xpath.evaluate(expr, this.doc, XPathConstants.NODE);
	public void delPog(String filePath) throws Exception	{		XPath xpath = XPathFactory.newInstance().newXPath();		String expression = "//dependencies/apes";		String expr = "//apes/pog[@fileNamePog=\""+filePath+"\"]";						Element elem = null;		Element oldElem = null;				try {			elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);			oldElem = (Element)xpath.evaluate(expr, this.doc, XPathConstants.NODE);		}		catch (XPathExpressionException e) {			ErrorManager.getInstance().setErrTitle("Expression XPath Incorrecte");			ErrorManager.getInstance().setErrMsg("Expression XPath "+ expression +" Incorrecte");			throw new XPathExpressionException(expression);		}		if ( elem != null && oldElem != null) {			elem.removeChild(oldElem);			saveDocument((File)dependencies.get(currentProject));				publish((File)dependencies.get(currentProject));		}	}