Skip to main content

Appcelerator: Handling Remote Data with HTTPClient and XML RSS P. 2

Posted on October 16, 2011 by Anthony James Founder/CEOAnthony James Founder/CEO

In this screencast (part 2 of this series) we will learn how to use HTTPClient data to connect to our remote server, and read data populated by MySQL into an XML RSS feed. We will then take that data and parse it into a table in clean form for use within our appcelerator application. You can use this code to read any RSS feed or generate your own data to read into your application.


Image of Nidhi
9 years ago

What did you use to create XML document?
also, I don’t have a website and a server. But I am thinking to create an XML document and put it into dropbox’s public folder and copy the public URL and put it into the code. Will that work? But for that I have to create XML document can you please tell me what you used?

Image of Anthony James Founder/CEO
Anthony James Founder/CEO
9 years ago

I’ll make a tut on it tomorrow. How does that sound? I’ll make a tut on the whole thing your requesting.

Image of Thomas
8 years ago

Hi Anthony,
thanks for this tutorial – awsome as always!
When re-building your tutorial I noticed two things:
#1: At 18:17 you pasted the “var doc = this.responseXML.documentElement;”-line before the “win.add(tableview);”
I think that isn’t necessary. Please correct me if I’m wrong.
#2: Sometimes I was running in some exceptions saying e.g. “this is not a vaild function” or something else. I solved this by deleting the “build” folder at the root of my project e.g. myproject/build/iphone/build* (* That’s the folder to delete). That forced Titanium to start a full rebuild and the exceptions dissapeared…
Keep going…

Image of Nathalie
8 years ago

hi Anthony,
Is it possible to receive the data via a php script (that creates xml). I’m trying to fill in a tableView with xml I receive from a php script, but I’m getting an exception: “Cannot find function gebeurtenis in object [Ti.NodeList].” Do you know how I can fix this? (For more details, I’ve posted it on stackoverflow:

Image of Anthony James Founder/CEO
Anthony James Founder/CEO
8 years ago

Sure, that’s actually what we did. Appcelerator connected to the web server xml which was created by a php script.

Image of Maciah
8 years ago

Is source code available for this tutorial?

Image of Anthony James Founder/CEO
Anthony James Founder/CEO
8 years ago

I’m sure I can make it available. Have you thought about following along with the tutorial?

Leave a Reply

Your email address will not be published. Required fields are marked *