View Full Version : xml reader gives json error

18 Dec 2011, 11:06 AM

I have defined an xml store like

Ext.define('Bigbrother.store.Video', {
extend: 'Ext.data.Store',
model: 'Bigbrother.model.Video',
proxy: {
type: 'ajax',
url : 'feed/',
reader: {
reader: {
type : 'xml',
root : 'feed',
record: 'entry'

And I try to read a feed from http://front.xstream.dk/nutvklip/feed/

However, when I load the store, I get the error

Unable to parse the JSON returned by the server: Error: You're trying to decode an invalid JSON String: <?xml version="1.0" encoding="UTF-8"?> ....

This confuses me, as I have explicitly asked for an xml reader, so why should json get mixed into the process.

Any clues to why this happens

Best Regards

18 Dec 2011, 11:09 AM
I noted reader was defined inside a reader - case solved and my mistake