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.
Related posts:












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?
I’ll make a tut on it tomorrow. How does that sound? I’ll make a tut on the whole thing your requesting.
Thank you
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…
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: http://stackoverflow.com/questions/8945300/tableview-filled-with-database-information)
Thanks
Sure, that’s actually what we did. Appcelerator connected to the web server xml which was created by a php script.
Is source code available for this tutorial?
I’m sure I can make it available. Have you thought about following along with the tutorial?
Thanks,