title: Sencha Touch XML
body: <p>I have a problem with senchatouch  and i have to decode this XML.
  i can't find a solution to get the Product-id attribute, ProductMime urls and the other collections.</p>
  
  <pre><code> &lt;ProductCollection&gt;
  &lt;Product id="5"&gt;
  &lt;vendorProductId&gt;123&lt;/vendorProductId&gt;
  &lt;ean&gt;0&lt;/ean&gt;
  &lt;stock&gt;no&lt;/stock&gt;
  &lt;name&gt;test&lt;/name&gt;&lt;nameShort&gt;
  &lt;/nameShort&gt;
  &lt;description&gt;description&lt;/description&gt;
  &lt;descriptionShort&gt;descriptionShort&lt;/descriptionShort&gt;
  &lt;deliveryScope&gt;&lt;/deliveryScope&gt;
  &lt;price&gt;89&lt;/price&gt;
  &lt;priceTax&gt;0&lt;/priceTax&gt;
  &lt;priceGross&gt;89&lt;/priceGross&gt;
  &lt;productCurrency&gt;0&lt;/productCurrency&gt;
  &lt;ProductMimeCollection&gt;
    &lt;ProductMime url="1.JPG" mimeType=""/&gt;
    &lt;ProductMime url="1.JPG" mimeType=""/&gt;
    &lt;ProductMime url="1.JPG" mimeType=""/&gt;
    &lt;ProductMime url="1.JPG" mimeType=""/&gt;
    &lt;ProductMime url="1" mimeType=""/&gt;
  &lt;/ProductMimeCollection&gt;
  &lt;ProductReviewCollection rating="5" reviews="1"&gt;
    &lt;ProductReview id="1"&gt;
    &lt;active&gt;1&lt;/active&gt;
    &lt;customerId&gt;2&lt;/customerId&gt;
    &lt;dateCreated/&gt;
    &lt;productId&gt;5&lt;/productId&gt;
    &lt;review&gt;Reviewtext&lt;/review&gt;
    &lt;shopId/&gt;
    &lt;userEmail&gt;&lt;/userEmail&gt;
    &lt;userName&gt;&lt;/userName&gt;
    &lt;userRating&gt;5&lt;/userRating&gt;
    &lt;/ProductReview&gt;
  &lt;/ProductReviewCollection&gt;
  &lt;CrossSellingCollection&gt;
      &lt;Product id="13"&gt;&lt;/Product&gt;
  &lt;/CrossSellingCollection&gt;
  &lt;/Product&gt;
  
  &lt;/ProductCollection&gt;
  </code></pre>
  
  <p>can you show me how to fetch the attributes and elements,...
  this was my way which did not work:</p>
  
  <pre><code>Ext.regModel('Products', {
      fields: ['vendorProductId', 'ean', 'stock', {name: 'ProductMime', convert: (function(){
              var reader2 = new Ext.data.XmlReader({
                  record: '&gt; url',
                  fields: [
                      {name: 'url', mapping: '@url'}
                  ]
              });
              return function(v, n) {
                  return reader2.readRecords(n).records;
              };
          });}
  ]
  });
  
  var store = new Ext.data.Store({
      model: 'Products',
      autoLoad:true,
      proxy: {
          type: 'ajax',
          url : 'ajax/topten.xml',
          reader: {
      type  : 'xml',
      root  : 'ProductCollection',
      record: 'Product'
      }
      }
  </code></pre>
  
  <p>Please help me</p>
  
  <p>Thanks for your Help!!</p>