title: RestSharp Deserialize returns empty properties but xml.deserialize test works
body: <p>EDIT : the moment I asked the question I thougt of trying something..
  I've set XmlNamespace property on the request and that did the trick..</p>
  
  <pre><code>request.XmlNamespace = "http://musicbrainz.org/ns/mmd-2.0#";
  </code></pre>
  
  <p>But I don't really understand as to why...</p>
  
  <p>Next problem is getting RestSharp to recognize xml atributes as object properties    </p>
  
  <hr>
  
  <p>I've been going over this for the most of the weekend and I just don't get it to work.</p>
  
  <p>I'm trying to write a wrapper round a RestFul webservice (MusicBrainz).  I'm testing with a simple example : get details of one artist and put it in a custom Artist object.</p>
  
  <p>When I do a Execute on the RestClient it ends ok but my object properties are null..
  But when I test the deserialization with the XmlDeserializer the objectproperties are filled (But not for properties that correspond to an attribute, but I'll tackle that later)</p>
  
  <p>What happens between deserialization of the response and putting the object in response.data ?
  Quite possible it is a "newbie" error I'm making as this are my first steps with RestSharp..</p>
  
  <p>Help would be much appreciated..</p>
  
  <p>Returnded xml :</p>
  
  <pre><code>&lt;metadata&gt;
     &lt;artist type="Group" id="f1548c5b-329e-4036-921c-02213a04b525"&gt;
         &lt;name&gt;Uriah Heep&lt;/name&gt;
             &lt;sort-name&gt;Uriah Heep&lt;/sort-name&gt;
             &lt;country&gt;GB&lt;/country&gt;
             &lt;life-span&gt;
                 &lt;begin&gt;1970&lt;/begin&gt;
             &lt;/life-span&gt;
      &lt;/artist&gt;
  &lt;/metadata&gt;
  </code></pre>
  
  <p>My class :</p>
  
  <pre><code>public class Artist
  {
      public int Id { get; set; }
      public string Type { get; set; }
      public string Name { get; set; }
      public string SortName { get; set; }
      public string Country { get; set; }
  
  }
  </code></pre>
  
  <p>In the following code output properties are filled</p>
  
  <pre><code>var output = xml.Deserialize&lt;Artist&gt;(response);
  </code></pre>
  
  <p>But the same response does not fill properties when calling </p>
  
  <pre><code>var response = client.Execute&lt;T&gt;(request);
  </code></pre>
  
  <p>Complete code (I've put the test code in the generic method for sake of simplicity) :</p>
  
  <pre><code>public T Execute&lt;T&gt;(RestRequest request) where T : new()
  {
      var client = new RestClient();
      client.BaseUrl = BaseUrl;
      client.Authenticator = null;
  
      //does not fill properties 
      var response = client.Execute&lt;T&gt;(request);
  
      if (response.ErrorException != null)
      {
          throw response.ErrorException;
      }
      var xml = new XmlDeserializer();
  
      //fills properties
      var output = xml.Deserialize&lt;Artist&gt;(response);
  
      return response.Data;
  }
  </code></pre>