please refer the content updated above
please refer the content updated above
Last edited by gopi09_m; 2012-04-27 at 03:20.
Hi
I have the following xml which i want to extract and put them in three list boxes.
First listbox (TrasnPortService) should by default loaded with root items like SonyTransport,247Transport etc.
When user selects SonyTransport from the list box TransportService i want to display the user the second listbox(Cities) with the name of the cities like Hyderabad,Chennai etc..
When user selects a particular city (let's say Hyderabad ) then another list box( Locations ) will have all the locations of that city displayed as list items.
Can anybody help me with some sample code on how to achieve this.Any help would be greatly appreciated.
<SonyTransport>
<City>
<Hyderabad>
<Location>AmeerPet</Location>
<Location>AmberPet</Location>
<Location>BeerumGuda</Location>
<Location>ChandaNagar</Location>
<Location>DilsukhNagar</Location>
<Location>Erragadda</Location>
<Location>Falakhnuma</Location>
<Location>GayatriNagar</Location>
<Location>IndiraNagar</Location>
<Location>JubileeHills</Location>
</Hyderabad>
<Chennai>
<Location>AnnaNagar</Location>
<Location>BataNagar</Location>
<Location>ChennaiNagar</Location>
<Location>DolaNagar</Location>
<Location>EnnaNagar</Location>
<Location>FanimojiNagar</Location>
<Location>KanimojiNagar</Location>
</Chennai>
</City>
</SonyTransport>
<247Transport>
<City>
<Hyderabad>
<Location>AmeerPet</Location>
<Location>AmberPet</Location>
<Location>BeerumGuda</Location>
<Location>ChandaNagar</Location>
<Location>DilsukhNagar</Location>
<Location>Erragadda</Location>
<Location>Falakhnuma</Location>
<Location>GayatriNagar</Location>
<Location>IndiraNagar</Location>
<Location>JubileeHills</Location>
</Hyderabad>
<Chennai>
<Location>AnnaNagar</Location>
<Location>BataNagar</Location>
<Location>ChennaiNagar</Location>
<Location>DolaNagar</Location>
<Location>EnnaNagar</Location>
<Location>FanimojiNagar</Location>
<Location>KanimojiNagar</Location>
</Chennai>
</City>
</247Transport>
Please check this article for XML Parsing.
you can get more help on this tutorial.
http://www.windowsphonegeek.com/tips...nd-databinding
Chintan Dave.
Water Bubble Application for Nokia N9 is now available in Nokia Store.
World's Greatest Speeches for Windows Phone is now available in WP Marketplace.
Is someone generating that XML or did you write it up as a sample?
The reason I ask is its malformed.
You can't have an xmlelement started with a number.
Also the syntax isn't name attribute friendly, nor is there a root node.
Too a stab at it but its not well formed enough to push along.