Nbl Bz

Nbl Bz

  • NA
  • 56
  • 12.8k

Delete node in treeview with the same attribute value

Nov 25 2014 8:42 AM
Hello ,

Am working on winForm application , I browse an XML file to a TreeView. Then I want to delete some nodes , actually i can select one node then delete it.
My question/problem is :
I have another nodes with the same attribute value
 
<object id="100" name="toto">
  <child id="1200"/>
  <child id="1300"/>
<object/>
<object id="1200" name="toto"/>
 
 
I want to select and delete the object with the id = 1200 , then it's delete also the child with the id =1200.
It's an exemple , so globaly i want to delete all node having the similar id attribute value as the node selected.
it's possible ? if yes how ? can u help me to start this plz Smile | :)

Answers (1)