-
25 Oct 2011 3:22 AM #1
Answered: Error reading XML
Answered: Error reading XML
Hello,
I'm trying to read a XML but I have the error: Uncaught TypeError: Object [object Object] has no method 'isXml'
store: {
autoLoad: true,
fields: ['title'],
proxy: {
type: 'jsonp',
url: 'http://query.yahooapis.com/v1/public/yql?......'
reader: {
type: 'xml',
root: 'results',
record: 'item'
}
},
The returned string is:
Ext.data.JsonP.callback1({"query":{"count":"2","created":"2011-10-25T11:13:12Z","lang":"en-US"},"results":["<item>\n<title>Apple<\/title>\n<\/item>","<item>\n<title>Android<\/title>\n<\/item>"]});
Can anyone can tell me what is the problem?
Thank you,
Rui
-
Best Answer Posted by mitchellsimoens
You are using JsonP meaning it is optimized toward JSON.
-
25 Oct 2011 2:06 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
You are using JsonP meaning it is optimized toward JSON.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
11 Nov 2011 4:36 AM #3
which means?
-> i have a similar problem trying to parse an xml file
Error:Code:model: 'app.models.Category', autoLoad: false, proxy: { type: 'ajax', url: 'test.xml', reader: { type: 'xml', root: 'items', record: 'item' } }
Uncaught TypeError: Object [object Object] has no method 'isXml'


Reply With Quote