Bonjour j'ai utilisé xpath pour filtrer mon fichier xml maintenant je veux mettre le résultat obtenu (QoS) dans un tableau(Jtable) aidez-moi svp je n'arrive pas à le faire.
Voici mon code:
Code:
1
2
3
4
5
6 String expression = "/Clouds/cloud[@idCloud=\""+liste+"\"]/QoS"; System.out.println("La valeur de l'expression est:" + expression); NodeList nodeList = (NodeList) xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { QoS = ""; QoS+=nodeList.item(i).getFirstChild().getNodeValue();}