PDA

View Full Version : XML Reader Problem



Ploetzi
15 Feb 2011, 11:14 PM
Hi,
i am student and cannot afford the premium support, so my question here:
I have quite a simple XML and it gives me the following Error:
http://img33.imageshack.us/i/screenprn.png/

Ext.regModel('User', {
fields: ['id', 'name', 'email']
});

var store = new Ext.data.Store({
model: 'User',
autoLoad:true,
proxy: {
type: 'ajax',
url : 'ajax/user.xml',
reader: {
type : 'xml',
model: 'User',
record: 'user'
}
}
});



what is the reason?

evant
15 Feb 2011, 11:22 PM
It's not valid xml, you need a single root node.