How to populate textbox with the xml attribute value based on the combobox selection using c#.net
Posted on 2014-11-18
I have a XML file with the fields country name, pin, state, currency. The Sample XML is shown below
<?xml version="1.0" encoding="utf-8" ?>
<Country Name="India" State = "TN" Currency ="RS" PIN = "123456" />
<Country Name = "USA" State = "TX" Currency ="$" PIN= "123456" />
Now how to bind all the names of the countries in the combo box, assume that I am choosing India in the combo box, and I want populate all the attributes from the xml in to the text box,for example the state's value should be displayed in the state text box and the Currency value should be displayed in the Currency text box and so on.
Could someone please help me out here ?
Thanks you in advance...