CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2011
    Posts
    10

    Question How to create a list of features in tree structure

    I need to create a list of features as shown below

    Animals
    lion
    Tiger
    Dog
    Cat
    Vegetables
    Brinjal
    Potato
    Carrot

    It should have tree structure like within animals i should have details like lion, tiger, dog etc.
    Someone please tell me how to do it using xml. I am new to xml.

    Any good tutorials for creating list in tree structure?

    Urgent help required
    Last edited by Aveeb4u; September 22nd, 2011 at 02:00 AM.

  2. #2
    Join Date
    Sep 2011
    Location
    The Netherlands
    Posts
    32

    Re: How to create a list of features in tree structure

    Something like this?

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <items>
      <itemlist type="Animals">
        <item>Lion</item>
        <item>Tiger</item>
      </itemlist>
      <itemlist type="Vegetables">
        <item>Potato</item>
        <item>Carrot</item>
      </itemlist>
    </items>

  3. #3
    Join Date
    Sep 2011
    Posts
    10

    Re: How to create a list of features in tree structure

    @JapyDooge: Thanks for the help.

    I have written xml code for features to be placed in tree structure. Can I see the output of xml code in GUI format? I need to add collapse and expand feature to the list so that if I press a button the list should expand, and if I press it once again the list should compress. If yes what is the procedure to do it? Any tutorial to do it?

    Urgent help required

    Thanks in advance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured