title: Want to deserialize XML to object in a specific way
body: <p>I'm trying to do deserialize XML to model.
  I have, for example:</p>
  
  <pre><code>&lt;A&gt;
      &lt;B id=1&gt;&lt;/B&gt;
      &lt;B id=2&gt;&lt;/B&gt;
      &lt;B id=3&gt;&lt;/B&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>Is it possible to grab id's of B without creating model B?
  So I want to have something like this in the end:</p>
  
  <pre><code>public class A {
      [XmlAttribute(B/@id)]
      public List&lt;int&gt; ids { get; set; }
  }
  </code></pre>
  
  <p>Thx.</p>