Binding Hierarchical XML Documents to asp:DropDownList Controls

The following XML fragment is bound to the States DropDownList shown below:

<states> <state val="NY" text="New York" /> <state val="CT" text="Connecticut" /> <state> <val>NJ</val> <text>New Jersey</text>       </state> </states>


The following XML fragment is bound to the Countries DropDownList shown below: <countries> <country> <countryCode>USA</countryCode> <countryName>United States</countryName> </country> <country countryCode="CA" countryName="Canada" /> </countries>

View XML Document

 

© 2002 Dan Wahlin
http://www.XMLforASP.NET