Link to home
Start Free TrialLog in
Avatar of mADOchist
mADOchist

asked on

Load XML in Tree View

Hello New to VB.Net

I would like to create a function that would load any xml file and display its contents a treeview control.

The parent-child relationships in the xml file should be the same in the Tree View ....

I just am so confused by the treeview. I cant seem to find a way to do a recursive function to do this ?


ASKER CERTIFIED SOLUTION
Avatar of RonaldBiemans
RonaldBiemans

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mADOchist
mADOchist

ASKER

thanks,

btw,

what is the difference (either terminoligy or technically) between writting this:

<time value="5"></time>

and this

<time> value="5"</time>

The script only accepts the first option and not the seconds but aren't both options "Attributes" anyways ??? I guess I must be wrong..

Thanx...

I'll acccept the answer but id like to get a clarification on why it accepts a format but not the other...
You can do

<time value="5"></time>

and

<time>5<time>
this is in C# but you can use it in a VB project
http://www.devx.com/dotnet/Article/17829/0/page/1

Add a reference in your project then add the XmlTreeView control just like you would a normal tree view. The function calls will be the same as for C#...