Hi thanks again I think I'm on the right path now. The whole naming thing is not a big deal i just made a model that reflects the names exactly from the xml. Maybe in a later point I can try to figure out how I could change this. For now I made a new model and a store with an xml proxy. I'm able to load the whole data into the store.
My model
And my storePHP Code:Ext.define('swissunihockey.model.Test', {
extend: 'Ext.data.Model',
config: {
fields: [
{
name: 'id',// Every model must start with an id of type int
type: 'int'
}, {
name: 'title',
type: 'string'
}, {
name: 'link',
type: 'string'
}, {
name: 'description',
type: 'string',
}, {
name: 'pubDate',
type: 'int'
}, {
name: 'bildgross',
type: 'string'
}, {
name: 'bildklein',
type: 'string'
}
]
}
});
So now I need to copy this in an store with a model that has the type sqlitestorage?PHP Code:Ext.define('swissunihockey.store.Test', {
extend: 'Ext.data.Store',
requires: [
'swissunihockey.model.Test',
'Ext.data.reader.Xml'
],
config: {
model: 'swissunihockey.model.Test',
proxy: {
type: 'ajax',
url: 'http://swissunihockey.xservice.ch/xml/newsdata.aspx',
reader: {
type: 'xml',
record: 'item',
rootProperty: 'xml'
}
}
}
});
Again thank you so much for your help I really appreciate it!
Greetings eryx

