Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie parent-child tree

Status
Not open for further replies.

Jeaux

Programmer
Jan 16, 2008
1
US
I'm tring to use the treeview control in vb2008. I need an xml file that has a chapter and lesson tree. i.e.

Chapter1
Lesson1
Lesson2
Chapter2
Lesson1
Lesson2
Lesson3
Lesson4
Chapter3
Lesson1
...

Can someone please give me a properly nested example.

Many Thanks,
Joe
 
>...a properly nested example.
...and you cannot make one up? and you're going to use "tree-view" control (that sounds more advanced than make up an example).
 
Code:
<book>
<chapter>1
    <lesson>1</lesson>
    <lesson>2</lesson>
</chapter>
<chapter>2
    <lesson>1</lesson>
    <lesson>2</lesson>
    <lesson>3</lesson>
    <lesson>4</lesson>
</chapter>
<chapter>3
    <lesson>1</lesson>
    <lesson>2</lesson>
</chapter>
</book>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top