title: Converting an XML document to fluent C#
body: <p>I'd like to convert an external XML document without any XSD schema associated with it into a fluent .NET object.</p>
  
  <p>I have a simple XML file like:</p>
  
  <pre><code>&lt;application&gt;
      &lt;parameters&gt;
          &lt;param&gt;&lt;/param&gt;
          &lt;param&gt;&lt;/param&gt;
      &lt;/parameters&gt;
      &lt;generation /&gt;
      &lt;entities&gt;
          &lt;entity ID="1"&gt;
              &lt;PropTest&gt;Test&lt;/PropTest&gt;
          &lt;/entity&gt;
          &lt;entity ID="2"&gt;
              &lt;PropTest&gt;Another Test&lt;/PropTest&gt;
          &lt;/entity&gt;
       &lt;/entities&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>I'd like to navigate the document like:</p>
  
  <pre><code>var xConfig = new XmlConfig("file.xml");
  
  // testValue should be assigned "Test"
  string testValue = xConfig.Generation.Entities.Entity(1).PropTest;
  </code></pre>
  
  <p>What is the <strong>best way to achieve this in .NET 3.5?</strong></p>