Displaying xml item in a listbox (XlmSerialiser)
<p>I have the following deserialize method:</p>

<pre><code>   public static List&lt;Enquete&gt; GetAlleEnquetes()
    {
    XmlReader reader = new XmlTextReader(HttpContext.Current.Server.MapPath("~/App_Data/Questions.xml"));

    try
    {
        XmlSerializer serializer = new XmlSerializer(typeof(List&lt;Enquete&gt;), new XmlRootAttribute("enqueteSysteem"));
        return (List&lt;Enquete&gt;)(serializer.Deserialize(reader));
    }
    finally
    {
        reader.Close();
    }

}

public static Enquete GetEnqueteName(string name)
{
    foreach (Enquete e in GetAllEnquetes())
    {
        if (e.Name == name)
            return e;  
    }
    return null;     

}
</code></pre>

<p>Which works properly (this code is located in a class withing App_data).</p>

<p>Next i want to retrieve all the names and display them in a listbox.</p>

<p>But how exactly do i retrieve the names?  <code>&lt;Enquete Name =""&gt;</code> and list all of those in my listbox control? (through the asp.cs file)</p>

<p>My xml structure looks like this:</p>

<pre><code>&lt;enqueteSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
   &lt;Enquete Name="test"&gt;
     &lt;Questions&gt;
       &lt;Question QuestionText="testtest" QuestionType="na"&gt;&lt;/Question&gt;
     &lt;/Questions&gt;
   &lt;/Enquete&gt;
&lt;/enqueteSystem&gt;
</code></pre>
