title: XML attributes deserialization with RestSharp
body: <p>I have the following xml and I'm trying to deserialize it. I have used the RestSharp library but with this particular response I'm getting an empty list of resources. Do you know if the library has problem with self-closing elements in XML?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resourceList xmlns="..." xmlns:xsi="..." xsi:schemaLocation="..." location="..."&gt;
      &lt;resourceURL location="../../../campaign/12" metaData1="12" metaData2="ACD Systems" metaData3="CPS" metaData4="Active" metaData5="Public" metaData6="No" metaData7="2005-10-28" metaData8="2020-12-31"/&gt;
      &lt;resourceURL location="../../../campaign/10607" metaData1="10607" metaData2="Aiseesoft" metaData3="CPS" metaData4="Active" metaData5="Public" metaData6="No" metaData7="2013-07-17" metaData8="2033-12-31"/&gt;
      &lt;resourceURL location="../../../campaign/567" metaData1="567" metaData2="AnchorFree Hotspot Shield Elite" metaData3="CPS" metaData4="Active" metaData5="Select" metaData6="No" metaData7="2011-10-03" metaData8="2031-12-31"/&gt;
      &lt;resourceURL location="../../../campaign/384" metaData1="384" metaData2="Avast" metaData3="CPS" metaData4="Active" metaData5="Select" metaData6="No" metaData7="2008-06-30" metaData8="2025-01-31"/&gt;
  &lt;/resourceList&gt;
  </code></pre>
  
  <p>C# Classes:</p>
  
  <pre><code>[DeserializeAs(Name = "resourceList")]
  public class ResourceList
  {
      [DeserializeAs(Name = "resourceURL")]
      public List&lt;ResourceUrl&gt; ResourceURL { get; set; }
  }
  
  public class ResourceUrl
  {
      public string Location { get; set; }
  
      public string MetaData1 { get; set; }
  
      public string MetaData2 { get; set; }
  }
  </code></pre>
  
  <p>Last my call:</p>
  
  <pre><code>var response = _restClient.Execute&lt;ResourceList&gt;(request);
  </code></pre>