Ext.Ajax.request({
url: 'http://bar.com/api/foos/',
success: function(response, opts) {
// How parse the response containing the XML?
}
});
I tried fiddling around with XmlReader but didn’t get too far.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m really new to Sencha Touch but I’ve got an XML to read and display ok, the problem I had was that you can’t access cross domain xml’s (although I’ve heard if you compile in PhoneGap there is a way), so I put all my files in the same location and parsed the XML with a PHP script on my server (in turn keeping it local). See the example below:
So the sample XML file would look like:
And here is the xmlparse.php
Hope this helps 🙂