XML selection

willbailie

Member
Joined
Sep 4, 2003
Messages
11
I have an XML file, properly formed and everything, created using the XMLDocument class. Now, it is a representation of a directory tree structure, generated from a treeview control. The treeview has checkboxes, and if the checkbox is selected, then the entry for that directory also has an attribute called Selected set to true, and it contains in its direct descendants the files within that directory

What I want to do is extract from that file, all the directories which are selected, whilst still preserving the structure of the directory - I havent got a clue where to start

Any help at all will be greatly appreciated

Thank you

Will
 
Thanks man, that set me on my way.

I now have an XMLNodeList object containing the nodes I am interested in, but I want to create an XMLDocument from that.

Is there a quick way to do that without having to add each node to the document recursively
 
Back
Top