title: How do I bind xml file to dropdownlist using XML datasource?
body: <p>How to bind xml file to asp.net dropdownlist using xmldatasource? If I do it like below, I see empty dropdownlist.</p>
  
  <p>ASP.NET</p>
  
  <pre><code>&lt;asp:DropDownList runat="server" ID="ddlDEMO"  DataValueField="BILLAB" DataTextField="BILLAB" DataSourceID="xdsDemo"&gt;
  &lt;/asp:DropDownList&gt; 
  
  &lt;asp:XmlDataSource ID="xdsDemo" runat="server" DataFile="~/XML/Bills.xml" 
                          XPath="/Bills/Bill"&gt;&lt;/asp:XmlDataSource&gt;
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;Bills&gt;
    &lt;Bill&gt;
      &lt;BILLID&gt;1&lt;/BILLID&gt;
      &lt;BILLAB&gt;ONE&lt;/BILLAB&gt;
    &lt;/Bill&gt;
  &lt;/Bills&gt;
  </code></pre>