title: Android Resources - Array of Objects
body: <p>I have an array of objects and want to represent them in an resource array.
  The class is defined like this:</p>
  
  <pre><code>class MyItem{
      private int id;
      private int price;
      private String name;
      private String desc;
  
      //getters and setters here
  }
  </code></pre>
  
  <p>not sure about the syntax... but I tried this way:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;array name="Category01"&gt;
          &lt;item&gt;
              &lt;array&gt;
                  &lt;item name="name"&gt;Name&lt;/item&gt;
                  &lt;item name="desc"&gt;Description&lt;/item&gt;
                  &lt;item name="imageId"&gt;0000000&lt;/item&gt;
                  &lt;item name="price"&gt;100&lt;/item&gt;
              &lt;/array&gt;
          &lt;/item&gt;
      &lt;/array&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>not working... how to represent my array of objects in resources ??  thanks</p>