comp.text.xml
[Top] [All Lists]

Re: filling treeview from xml file, but only certain tags

Subject: Re: filling treeview from xml file, but only certain tags
From: Martin Honnen
Date: Thu, 31 Jul 2008 14:57:35 +0200
Newsgroups: comp.text.xml


minimalniemand wrote:
I try to recursivley fill a treeview from a xml-file. It works well,
when the contents of the xml and the treeview match 1:1.

code here: http://mad-scientists.co.uk/micha/shownode.txt

a sample xml doc can be found here:

                                mad-scientists.co.uk/micha/CurrentSearch.xml">http://mad-scientists.co.uk/micha/CurrentSearch.xml

the problem is, that the xml file contains more items then I want to
show in the treeview.
I only want to show items with certain tags. (OPTEXT & ITEXT)

You have not even told us which programming language and which framework and which tree view you are using. That sample looks like VB or VB.NET although it is not clear why you would use MSXML with the .NET framework. You might be better off asking in a group about classic VB if that is what you use, or in a VB.NET group. Instead of processing all child elements you could consider to use XPath to process only those elements you are interested in to appear in the tree view.

--

        Martin Honnen
                                        JavaScript.FAQTs.com/">http://JavaScript.FAQTs.com/

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy