Hey Guys,
I have a treeview control on my form, i am trying to load an xml into the treeview to show cities/states (example at the bottom of the page)
The xml that treeview is loading from looks like:
vb.net Code:
<?xml version="1.0" encoding="utf-8" ?> <Locations> <Group name="US States"> <Group name="Alabama"> <Location name="Tuscaloosa" url="tsc/{0}" /> <Location name="Montgomery" url="mgm/{0}" /> <Location name="Mobile" url="mob/{0}" /> <Location name="Huntsville" url="hsv/{0}" /> <Location name="Gadsden-Anniston" url="anb/{0}" /> <Location name="{Florence|Muscle Shoals}" url="msl/{0}" /> <Location name="Dothan" url="dhn/{0}" /> <Location name="Birmingham" url="bhm/{0}" /> <Location name="Auburn" url="aub/{0}" /> </Group> <Location name="Alaska" url="anc/{0}" /> <Group name="Arizona"> <Location name="Yuma" url="yum/{0}" /> <Location name="Tucson" url="tus/{0}" /> <Location name="Sierra Vista " url="fhu/{0}" /> <Location name="Prescott" url="prc/{0}" /> <Group name="Phoenix"> <Location name="{Central|South Phoenix|S. Phoenix}" url="phx/{0}/cph"/> <Location name="East Valley" url="phx/{0}/evl"/> <Location name="Phoenix North" url="phx/{0}/nph"/> <Location name="West Valley" url="phx/{0}/wvl"/> </Group> <Location name="Mohave County" url="mhv/{0}" /> <Location name="{Flagstaff|Sedona}" url="flg/{0}" /> </Group> </locations>
I'v never really used the treeview control before, i can load xml documents ok, i'm unsure how to then load the data into the treeview
any help would be appreciated
thanks guys
Graham




Reply With Quote