LINQ to XML subquery<

I didn’t find a clear example online about how to do a subquery of an element, so I thought I would share. First, here’s the XML I’m reading: &lt;response&gt; &lt;name&gt;Test&lt;/name&gt; &lt;states&gt; &lt;state&gt;OH&lt;/state&gt; &lt;state&gt;MI&lt;/state&gt; &lt;/states&gt; &lt;/response&gt; I want to use LINQ to parse through the responses and create new objects for each one of them.  The [...]

Tags:

Filed under:general