1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    7
    Vote Rating
    0
    ruicoimbralopes@gmail.com is on a distinguished road

      0  

    Default 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

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

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You are using JsonP meaning it is optimized toward JSON.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    Jena
    Posts
    39
    Vote Rating
    0
    dsac is on a distinguished road

      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'

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi