title: How to deserialize object from OData Atom feed?
body: <p>I am trying to parse response from an OData REST service. When response is in JSON format, it is easy to use <code>ReadAsJsonDataContract</code> method from WCF REST starter kit. However things seem to be more complicated in case the response is an Atom feed. This is an example:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1" standalone="yes"?&gt;
  &lt;entry xml:base="http://localhost:64172/BookshopService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"&gt;
    &lt;id&gt;http://localhost:64172/BookshopService.svc/Books(89)&lt;/id&gt;
    &lt;title type="text"&gt;&lt;/title&gt;
    &lt;updated&gt;2010-11-08T09:44:21Z&lt;/updated&gt;
    &lt;author&gt;
      &lt;name /&gt;
    &lt;/author&gt;
    &lt;link rel="edit" title="Books" href="Books(89)" /&gt;
    &lt;link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrderLines" type="application/atom+xml;type=feed" title="OrderLines" href="Books(89)/OrderLines" /&gt;
    &lt;category term="BookshopModel.Books" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /&gt;
    &lt;content type="application/xml"&gt;
      &lt;m:properties&gt;
        &lt;d:Id m:type="Edm.Int32"&gt;89&lt;/d:Id&gt;
        &lt;d:Author&gt;Martin Fowler&lt;/d:Author&gt;
        &lt;d:Title&gt;Analysis Patterns&lt;/d:Title&gt;
        &lt;d:Price m:type="Edm.Decimal"&gt;50.20&lt;/d:Price&gt;
      &lt;/m:properties&gt;
    &lt;/content&gt;
  &lt;/entry&gt;
  </code></pre>
  
  <p>So the actual object is serialized in "content/m:properties" element. And of course this can't be handled by <code>DataContractSerializer</code> that expects a different schema.</p>
  
  <p>Does anyone know what technique can be used to deserialize the content of OData atom m:properties element?</p>