Selecting specific nodes while parsing from xml file (URGENT)

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 !!!
 
M

Mike

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top