title: Make anonymous object from unknown xml
body: <p>I want to try and return an object from an XML reader that I wrote to process a file that will have a partially unknown structure.</p>
  
  <p>Here is a sample of the XML.</p>
  
  <pre><code>&lt;xml&gt;
    &lt;strings&gt;
      &lt;Home&gt;
        &lt;Index&gt;
          &lt;PreWrapper&gt;
            &lt;Left&gt;
              &lt;Title&gt;Blah&lt;/Title&gt;
              &lt;Body&gt;Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit&lt;/Body&gt;
              &lt;LinkText&gt;read more&lt;/LinkText&gt;
              &lt;LinkUrl&gt;#&lt;/LinkUrl&gt;
            &lt;/Left&gt;
            &lt;Center&gt;
              &lt;Title&gt;Exploit your ideas&lt;/Title&gt;
              &lt;Body&gt;Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit&lt;/Body&gt;
              &lt;LinkText&gt;read more&lt;/LinkText&gt;
              &lt;LinkUrl&gt;#&lt;/LinkUrl&gt;
            &lt;/Center&gt;
            &lt;Right&gt;
              &lt;Title&gt;Grow your business&lt;/Title&gt;
              &lt;Body&gt;Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit&lt;/Body&gt;
              &lt;LinkText&gt;read more&lt;/LinkText&gt;
              &lt;LinkUrl&gt;#&lt;/LinkUrl&gt;
            &lt;/Right&gt;
          &lt;/PreWrapper&gt;
        &lt;/Index&gt;
      &lt;/Home&gt;
    &lt;/strings&gt;
    &lt;config&gt;
      &lt;Home&gt;
        &lt;Index&gt;
          &lt;ShowPreWrapper&gt;True&lt;/ShowPreWrapper&gt;
        &lt;/Index&gt;
      &lt;/Home&gt;
    &lt;/config&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>I want to be able to just call with my reader</p>
  
  <pre><code>var left = reader.GetObject("xml/strings/Home/Index/PreWrapper/Left");
  </code></pre>
  
  <p>and I want it to return an anonymous object (or a dynamic object, but I don't know much about those) that looks like</p>
  
  <pre><code>left.Title
  left.Body
  left.LinkText
  left.LinkUrl
  </code></pre>
  
  <p>or </p>
  
  <pre><code>var xml = reader.GetObjcet("xml");
  </code></pre>
  
  <p>and be able to dive right into it like</p>
  
  <pre><code>xml.strings.Home.Index....
  </code></pre>
  
  <p>but I just cannot figure out how to create this object.
  Is this even possible?</p>