title: How I get the Attributevalue from a Xml to a Array with Linq to XML?
body: <p>hi i want to get a arralist from a xml file with Linq to XML</p>
  
  <p>here my xml: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  
  &lt;modules&gt;
    &lt;modul name=""&gt;&lt;/modul&gt;
    &lt;modul name="P1:"&gt;&lt;/modul&gt;
    &lt;modul name="AS5050:"&gt;&lt;/modul&gt;
    &lt;modul name="GMS4010:"&gt;&lt;/modul&gt;
    &lt;modul name="GMS4020:"&gt;&lt;/modul&gt;
    &lt;modul name="GMS4030A:"&gt;&lt;/modul&gt;
    &lt;modul name="gateway:"&gt;&lt;/modul&gt;
    &lt;modul name="view_only:"&gt;&lt;/modul&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p>here my code: </p>
  
  <pre><code>private ArrayList GetModules() 
  {
      XDocument x = XDocument.Load(Server.MapPath(@"~\App_Data\UGNX.xml"));
      ArrayList data = from item in x.Elements("modul") ///??? 
      return data; 
  }
  </code></pre>