Results 1 to 3 of 3

Thread: Error reading XML

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default 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

  2. You are using JsonP meaning it is optimized toward JSON.

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    You are using JsonP meaning it is optimized toward JSON.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    Jena
    Posts
    39
    Vote Rating
    0
      0  

    Default

    which means?

    -> i have a similar problem trying to parse an xml file

    Code:
                  
     model: 'app.models.Category', 
     autoLoad: false,
     proxy: {
         type: 'ajax',
         url: 'test.xml',
         reader: {
             type: 'xml',
             root: 'items',
             record: 'item'
         }
     }
    Error:
    Uncaught TypeError: Object [object Object] has no method 'isXml'

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •