title: SimpleXML Android Error ValueRequiredException
body: <p>I am integrating SimpleXml deserialization but got exception every time. Don't know what is the exact reason. Please check the details provided under this question. Thanks in advance.</p>
  
  <p><strong><em>Below are the model classes</strong>.</em></p>
  
  <pre><code>import java.util.ArrayList;
  
  import org.simpleframework.xml.ElementList;
  import org.simpleframework.xml.Root;
  
  @Root(name = "images")
  public class ImagesModel {
  
      @ElementList(name="image")
      private ArrayList&lt;ImageClass&gt; imgList = new ArrayList&lt;ImageClass&gt;();
  
      public ArrayList&lt;ImageClass&gt; getImageList(){
          return imgList;
      }
  }
  
  
  import java.util.ArrayList;
  
  import org.simpleframework.xml.Attribute;
  import org.simpleframework.xml.Element;
  import org.simpleframework.xml.ElementList;
  
  @Element(name = "image")
  public class ImageClass {
          @Attribute(name = "name")
          private String imageName;
  
          public String getImageName(){
              return imageName;
          }
  
          public ImageClass(String imageName) {
              this.imageName = imageName;
          }
  
          @ElementList(name="ver")
          private ArrayList&lt;Version&gt; versions = new ArrayList&lt;Version&gt;();
  
          public ArrayList&lt;Version&gt; getVersionsList(){
              return versions;
          }
      }
  
  import org.simpleframework.xml.Attribute;
  import org.simpleframework.xml.Element;
  
  @Element(name = "diff")
  public class PixelDetail{
          @Attribute(name = "x")
          private String x;
  
          public String getX(){
              return x;
          }
  
          @Attribute(name = "x")
          private String y;
  
          public String getY(){
              return y;
          }
  
          public PixelDetail(String x, String y) {
              this.x = x;
              this.y = y;
          }
      }
  
  import java.util.ArrayList;
  
  import org.simpleframework.xml.Element;
  import org.simpleframework.xml.ElementList;
  
  @Element(name = "version")
  public class Version{
          @ElementList(name="diff")
          private ArrayList&lt;PixelDetail&gt; pixelsData = new ArrayList&lt;PixelDetail&gt;(); 
  
          public ArrayList&lt;PixelDetail&gt; getPixelsList(){
              return pixelsData;
          }
      }
  </code></pre>
  
  <p><strong><em>XML Structure</em></strong></p>
  
  <pre><code>&lt;images&gt;
  
      &lt;image name="Org1" &gt;
          &lt;version&gt;
              &lt;ver&gt;
                  &lt;diff
                      x="79"
                      y="19" /&gt;
  
                  &lt;diff
                      x="215"
                      y="73" /&gt;
  
                  &lt;diff
                      x="68"
                      y="202" /&gt;
  
                  &lt;diff
                      x="96"
                      y="289" /&gt;
  
                  &lt;diff
                      x="173"
                      y="164" /&gt;
              &lt;/ver&gt;
  
              &lt;ver&gt;
                  &lt;diff
                      x="14 "
                      y="93 " /&gt;
  
                  &lt;diff
                      x="57 "
                      y="46 " /&gt;
  
                  &lt;diff
                      x=" 192"
                      y="17" /&gt;
  
                  &lt;diff
                      x="180 "
                      y="139" /&gt;
  
                  &lt;diff
                      x="135 "
                      y="242 " /&gt;
              &lt;/ver&gt;
  
              &lt;ver&gt;
                  &lt;diff
                      x="286 "
                      y="123" /&gt;
  
                  &lt;diff
                      x="31"
                      y="292" /&gt;
  
                  &lt;diff
                      x="170"
                      y="216" /&gt;
  
                  &lt;diff
                      x="189"
                      y="234" /&gt;
  
                  &lt;diff
                      x="131 "
                      y="286" /&gt;
              &lt;/ver&gt;
          &lt;/version&gt;
      &lt;/image&gt;
      &lt;image name="Org2" &gt;
          &lt;version&gt;
              &lt;ver&gt;
                  &lt;diff
                      x="197"
                      y="41" /&gt;
  
                  &lt;diff
                      x="269"
                      y="162" /&gt;
  
                  &lt;diff
                      x="297"
                      y="19" /&gt;
  
                  &lt;diff
                      x="4"
                      y="52" /&gt;
  
                  &lt;diff
                      x="178"
                      y="284" /&gt;
              &lt;/ver&gt;
  
              &lt;ver&gt;
                  &lt;diff
                      x="213"
                      y="59" /&gt;
  
                  &lt;diff
                      x="208"
                      y="97" /&gt;
  
                  &lt;diff
                      x="284"
                      y="162" /&gt;
  
                  &lt;diff
                      x="193"
                      y="138" /&gt;
  
                  &lt;diff
                      x="5"
                      y="221" /&gt;
              &lt;/ver&gt;
  
              &lt;ver&gt;
                  &lt;diff
                      x="219"
                      y="97" /&gt;
  
                  &lt;diff
                      x="40"
                      y="44" /&gt;
  
                  &lt;diff
                      x="67"
                      y="21" /&gt;
  
                  &lt;diff
                      x="181"
                      y="37" /&gt;
  
                  &lt;diff
                      x="208"
                      y="172" /&gt;
              &lt;/ver&gt;
          &lt;/version&gt;
      &lt;/image&gt;
  &lt;/images&gt;
  </code></pre>
  
  <p><strong><em>Log Cat Error</em></strong></p>
  
  <pre><code>09-11 14:52:55.926: W/System.err(5525): org.simpleframework.xml.core.ValueRequiredException: Unable to satisfy @org.simpleframework.xml.Attribute(empty=, name=name, required=true) on field 'imageName' private java.lang.String com.wavinno.iotasol.spotdifference.models.ImageClass.imageName for class com.wavinno.iotasol.spotdifference.models.ImageClass at line 5
  </code></pre>