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.

8 responses to “Appcelerator: Handling Remote Data with HTTPClient and XML RSS P. 2”

  1. Nidhi says:

    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?

  2. Thomas says:

    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…

  3. Nathalie says:

    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

  4. Anthony James says:

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

  5. Maciah says:

    Is source code available for this tutorial?

  6. Anthony James says:

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

    Thanks,

Leave a Reply

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

Get actionable training and tech advice

We'll email you our latest articles up to once per week.