Sencha Touch - XML Reader issue

Skyfire83

New Member
I am trying some basic application on Sencha Touch 2.Instead of \[code\]json\[/code\], I am trying to read an \[code\]xml\[/code\] in the sencha touch list.I have my store defined like this,\[code\] Ext.define('MyApp.store.ListStore', { extend: 'Ext.data.Store', config: { fields: ['id','name','email'], proxy: { type: 'jsonp', url: 'users.xml', reader: { type: 'xml', record: 'user', rootProperty: 'users' } }, autoLoad:true, }});\[/code\]and my \[code\]xml\[/code\] file is located at the same place where my store is.\[code\] <?xml version="1.0" encoding="UTF-8"?><users> <user> <id>1</id> <name>Ed Spencer</name> <email>[email protected]</email> </user> <user> <id>2</id> <name>Abe Elias</name> <email>[email protected]</email> </user></users>\[/code\]and my list view goes like this,\[code\]var listStore = Ext.create('MyApp.store.DStore');Ext.define('MyApp.view.NavigateView', { extend: 'Ext.navigation.View', xtype: 'navigateview', requires: [ 'MyApp.store.ListStore' ], config: { fullscreen: true, scrollable: true, items: [ { xtype: 'list', title: 'List', id: 'datalist', onItemDisclosure: true, store: listStore, itemTpl: '<div class="contact">{name}</div>', } ] }});\[/code\]but no o/p is shown.Where am I doing wrong ? Please suggest!
 
Back
Top