| Author: Miss Meetu Choudhary 22 Feb 2009 | Member Level: Diamond Points : 1 |
It would be good if you put the sample of XML file too
Thanks and regards Meetu Choudhary Editor
|
| Author: MASNSN 22 Feb 2009 | Member Level: Gold Points : 2 |
Hi there, Well this code could be applied on any data structured xml file for example
Lybia
1,759,541 km2
6,173,579
Triapolis
Dinar
ly
Tunisia
163,610 km2
10,327,800
Tunis
Dinar
tn
Algeria
2,381,741 km2
33,769,669
Alger
Dinar
dz
Morroco
446,550 km2
31,352,000
Ribat
Dirham
ma
Mauritania
1,030,700 km2
3,069,000
Nouag Chot
Ouguiya
mr
Save this file in C:\NorthAfrica.xml then
Create a new Windows application and add a treeview named treeview1 within the from and size it Afterward, in the page load event handler add
XmlParser myParser = new XmlParser("C:\NorthAfrica.xml",treeview1);
Finally, run the project
|