1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| if(radioobjet.isSelected())
{
System.out.println("Dans radioObjet");
for(int i=0;i<nodeNiveau3.getLength();i++)
{
Node node = nodeNiveau3.item(i);
NamedNodeMap nodeAttribut = node.getAttributes();
System.out.println("\tDans for i : "+i+"---Node en cours :"+node.toString());
for(int k=0;k<nodeAttribut.getLength();k++)
{
Node attribut = nodeAttribut.item(k);
System.out.println("\t\tDans for k : "+k+"---attribut en cours :"+attribut.getNodeName());
if(attribut.getNodeName().equals("nom"))
{
String clef = attribut.getNodeValue();
System.out.println("\t\t\tDans if, cle : "+clef+"---itemSelectionne : "+itemSelectionne);
if(itemSelectionne == attribut.getNodeValue())
{
node.getParentNode().removeChild(node);
}
}
}
}
} |