Load XML in Tree View

Posted on 2004-11-25
Last Modified: 2012-05-05
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 ?

Question by:mADOchist
    LVL 25

    Accepted Solution

    LVL 1

    Author Comment



    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..


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

    Expert Comment

    You can do

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


    LVL 3

    Expert Comment

    this is in C# but you can use it in a VB project

    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#...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now