View Single Post
  #1 (permalink)  
Old November 23rd, 2005, 02:03 PM
rlull rlull is offline
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Populate drop down list with XML file

I have a simple XML file for US states formatted as follows:
<states>
    <state>
        <state_name>Alabama</state_name>
        <abbreviation>AL</abbreviation>
    </state>
    <state>
        <state_name>Alaska</state_name>
        <abbreviation>AK</abbreviation>
    </state>
etc...
</states>

How do I bind to a drop down list so that the state_name is displayed but the abbreviation is the actual value of the row?