Selecting specific nodes while parsing from xml file (URGENT)

  • Thread starter Thread starter tiger79
  • Start date Start date
T

tiger79

Hi,
I'm parsing from an xml file (using DOM) so that i can place certain nodes
in a Tree View.
Now i'm wondering if its possible to place certain nodes in the treeview
while parsing, so selecting only some nodes out of the whole xml structure
but keeping their parent/child relationship (the selected nodes can be
identified or by their tag name (<DES></DES>) or by the fact they are
CDATA)...

I'd also like to know if its better to fill the Treeview while parsing or if
its better to first fill the whole dom document and afterwards browse
through it and fill the treeview (i'd allso like to know which would be
faster)...

Please help me out, I've been struggling for days now :(
Any help is appreciated !!!
 
Of course it is possible to place only some nodes in the tree view. If you
don't want to add a node then don't add it.

I don't really understand the second question. How are you filling the
document object? Can you post some code?
 
Back
Top