title: LINQ to XML: parsing XML file which one of nodes presents type of another node
body: <p>Helo!</p>
  
  <p>Is this possible to use string value of one node which tells what type of field is presented in another node using LINQ to XML?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;node&gt;
    &lt;name&gt;nodeName&lt;/name&gt;
    &lt;type&gt;string&lt;/type&gt;
  &lt;/node&gt;
  &lt;node&gt;
    &lt;name&gt;0&lt;/name&gt;
    &lt;type&gt;bool&lt;/type&gt;
  &lt;/node&gt;
  &lt;node&gt;
    &lt;name&gt;42&lt;/name&gt;
    &lt;type&gt;int&lt;/type&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>Thanks in advance</p>