Asp.net XML to objects
<p>I have a XML file, with a structure like</p>

<pre><code>&lt;items&gt;
  &lt;item&gt;
    &lt;someDetail&gt;
      A value here
     &lt;/someDetail&gt;
  &lt;/item&gt;
  &lt;item&gt;
    &lt;someDetail&gt;
      Another value here
     &lt;/someDetail&gt;
  &lt;/item&gt;
&lt;/items&gt;
</code></pre>

<p>With multiple items in it.</p>

<p>I want to deserialize the XML on session start ideally, to turn the XML data to objects based on a class (c# asp.net 4)</p>

<p>I have tried several ways with either no success, or a solution which seems clunky and inelegant.</p>

<p>What would people suggest?</p>

<p>I have tried using the <code>xsd.exe</code> tool, and have tried with the xml reader class, as well as usin <code>XElement</code> class to loop through the xml and then create new someObject(props).</p>

<p>These maybe the best and/or only way, but with it being so easy for database sources using the entities framework, I wondered if there was a similar way to do the same but from a xml source.</p>
