CTRL+C pour copier, CTRL+V pour coller
1
public static NodeList getListPersonneID(int id)
3
NodeList personne = null;
5
String expression = "/annuaire/personne[@id>"+id+"]";
9
personne = (NodeList) xPath.compile(expression).evaluate(annuaire, XPathConstants.NODESET);
11
catch (XPathExpressionException e)
13
System.out.println("Bug de recherche xpath avec idPersonne = " + id);
public static NodeList getListPersonneID(int id)
{
NodeList personne = null;
//TODO 3
String expression = "/annuaire/personne[@id>"+id+"]";
try
{
personne = (NodeList) xPath.compile(expression).evaluate(annuaire, XPathConstants.NODESET);
}
catch (XPathExpressionException e)
{
System.out.println("Bug de recherche xpath avec idPersonne = " + id);
e.printStackTrace();
}
return personne;
}