title: XML deserializing only works with namespace in xml
body: <p>The most simple way I get ServiceStack xml deserialization to work is when the xml contains a namespace. However, the xml I receive do not contain namespaces. The most simple working example:</p>
  
  <pre><code>[Serializable]
  public class test
  {
  
  }
  
  class Program
  {
     static void Main(string[] args)
     {
         string xml="&lt;test xmlns=\"http://schemas.datacontract.org/2004/07/\"&gt;&lt;/test&gt;";
         var result = ServiceStack.Text.XmlSerializer.DeserializeFromString&lt;test&gt;(xml);
     }
  }
  </code></pre>
  
  <p>However, that is not what I want. I want the following to deserialize, since that is the xml I get from several services:</p>
  
  <pre><code>string xml="&lt;test&gt;&lt;/test&gt;";
  </code></pre>
  
  <p>But that gives me the following error:</p>
  
  <pre><code>DeserializeDataContract: Error converting type: Error in line 1 position 7. 
  Expecting element 'test' from namespace 
  'http://schemas.datacontract.org/2004/07/'.. 
  Encountered 'Element'  with name 'test', namespace ''.
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>[Serializable]
  [XmlRoot("test", Namespace = "")]
  public class test
  </code></pre>
  
  <p>I can't create a new Serializer, because ServiceStack.Text.XmlSerializer is static. I need to choose for either Microsoft XmlSerializer OR ServiceStack (not both). Meaning: if I can't get this simple example to work I need to skip an otherwise very useful part of the ServiceStack package. The last thing I want is to inject some dummy namespace in the incoming xml.</p>