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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML into treeview

Status
Not open for further replies.

EagleTempest

Technical User
Jun 15, 2004
125
CA
I need to use recursion to transfer items from an xml file to a treeview in VB 2005 and framework 2.0

Here's a sample of the xml contents:
Code:
<?xml version="1.0" encoding="utf-8"?>
<FOLDERS>
	<FOLDER NAME="0 File Index"></FOLDER>
	<FOLDER NAME="1 UMA Client">
		<FOLDER NAME="1 Contract">
			<FOLDER NAME="1 RFP"</FOLDER>
		</FOLDER>
		<FOLDER NAME="2 Correspondence">
			<FOLDER NAME="1 Incoming"></FOLDER>
		</FOLDER>
	</FOLDER>
	<FOLDER NAME="2 Project Management">
		<FOLDER NAME="1 Meetings"></FOLDER>
		<FOLDER NAME="2 Control">
			<FOLDER NAME="5 Quality Reviews">
				<FOLDER NAME="1 Quality Review Records"></FOLDER>
			</FOLDER>
			<FOLDER NAME="6 Drawing List"</FOLDER>
		</FOLDER>
	</FOLDER>
	<FOLDER NAME="4 Project Cost Estimates"></FOLDER>
	<FOLDER NAME="5 Project Insurance and Bonds"></FOLDER>
	<FOLDER NAME="6 Project Performance Reviews"></FOLDER>
</FOLDERS>
Please ignore the numbers at the front. I've seen many examples when the xml is nicely organized and repetitive but that doesn't apply in my case.
 
It looks very organized and repetitive to me.

What do you have so far and what is the problem?

Christiaan Baes
Belgium

"My old site" - Me
 
What I'm trying to do is to display an xml file in a treeview using recursion.

I want the childnodes in the treeview to mimic the organization of the xml file. I can output the nodes in order from the xml file, but adding child nodes in the correct order to a treeview seems to be a problem for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top