title: How do I deserialise xml into a DataContract when the XML has had namespaces removed?
body: <p>I serialise my wcf requests and responses into XML but to save database space, I strip out all non-essential information, so the result is:</p>
  
  <pre><code>&lt;someObject&gt;
    &lt;someValue&gt;10&lt;/someValue&gt;
  &lt;/someObject&gt;
  </code></pre>
  
  <p>There are more complex nested properties, the above is just an example.</p>
  
  <p>When I try to deserialise, I get an error saying expecting <code>someObject, someNamespace</code> but encountered <code>someObject, ''</code></p>
  
  <pre><code>byte[] data = System.Text.Encoding.UTF8.GetBytes(xmlString);
  stream.Write(data, 0, data.Length);
  stream.Position = 0;
  DataContractSerializer deserializer = new DataContractSerializer(typeof(T));
  return deserializer.ReadObject(stream) as T;
  </code></pre>
  
  <p>Is there an easy way to solve this? Perhaps by not using a <code>DataContractSerializer</code>?</p>