title: populate dropdownlist with xml data in asp.net mvc application
body: <p>i have an xml file and want to use it to populate a dropdownlist control in asp.net mvc application</p>
  
  <p>xml looks like this</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8" ?&gt;
   &lt;Processes&gt;
  &lt;Process&gt;
      &lt;id&gt;1&lt;/id&gt;
      &lt;ConfigFile&gt;Process1.xml&lt;/ConfigFile&gt;
  &lt;/Process&gt;
  &lt;Process&gt;
      &lt;id&gt;2&lt;/id&gt;
      &lt;ConfigFile&gt;SecondProcess.xml&lt;/ConfigFile&gt;
  &lt;/Process&gt;
  &lt;Process&gt;
      &lt;id&gt;3&lt;/id&gt;
      &lt;ConfigFile&gt;Process3.xml&lt;/ConfigFile&gt;
  &lt;/Process&gt;
  &lt;/Processes&gt;
  </code></pre>
  
  <p>this is what i have done so far:
  IT WORKS THANK YOU GUYS</p>
  
  <pre><code>   IEnumerable&lt;SelectListItem&gt; process = from proc in         
  
                                  XDocument.Load("Processes.xml").Descendants("Process")  
  
                                                select new SelectListItem
                                                {
  
                                                    Text = (string)proc.Element("ConfigFile")
  
                                                };
          ViewBag.process = process;
  </code></pre>
  
  <p>NOW I WANT TO DO SOMETHING ON DROPDOWNLIST ITEMSELECTED EVENT OPEN A NEW WEB PAGE WITH A TEXTBOX</p>