title: Reading Element attribute value using XStream
body: <p>I am not able lookup attribute value of an element. My XML is </p>
  
  <pre><code>&lt;Person&gt;
            &lt;BirthDate&gt;2008-01-04&lt;/BirthDate&gt;
            &lt;FirstName&gt;Affo&lt;/FirstName&gt;
            &lt;Gender tc="200"&gt;Male&lt;/Gender&gt;
            &lt;LastName&gt;&lt;/LastName&gt;
            &lt;Occupation&gt;false&lt;/Occupation&gt;
            &lt;Age&gt;4&lt;/Age&gt;
  &lt;/Person&gt;
  </code></pre>
  
  <p>I am interested in <code>&lt;Gender tc="200"&gt;Male&lt;/Gender&gt;</code>. My POJO looks like this:</p>
  
  <pre><code>    private String FirstName;
      private String LastName;
      private String Occupation;
      @XStreamAsAttribute
      @XStreamAlias("tc")
      private String genderTC;
      private String Gender;
      private String birthDate;
      private int age;
  </code></pre>
  
  <p>From XML is </p>
  
  <pre><code>            XStream stream = new XStream(new DomDriver());
          stream.processAnnotations(PersonType.class);
          PersonType person = (PersonType) stream.fromXML(file);
  
          System.out.println(person.getFirstName());
          System.out.println(person.getGenderTC());
          System.out.println(person.getGender());
  </code></pre>
  
  <p>Here for <code>person.getGenderTC()</code> I am getting null. Interesting part is when I reversed the process and generated the xml using same PersonType pojo, I got following XML:</p>
  
  <pre><code>&lt;Person tc="111"&gt;
    &lt;FirstName&gt;Himanshu&lt;/FirstName&gt;
    &lt;Gender&gt;M&lt;/Gender&gt;
    &lt;Age&gt;28&lt;/Age&gt;
  &lt;/Person&gt;
  </code></pre>