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

Anthony James —  October 16, 2011

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:

  1. Introduction To Appcelerator Titanium
  2. Appcelerator Titanium | What Are Views And How Do They Work
  3. Fixing Common & Uncommon Build Errors In Appcelerator Titanium
  4. Appcelerator Titanium | Making Buttons And Adding Events
  5. Appcelerator: Handling Remote Data with HTTPClient and MySQL P.1

Anthony James

Posts Twitter Facebook

Anthony is a Web Software Developer & Linux Systems Engineer. With 11 years of experience in these fields. He is also the founder and main contributor at Pinehead.tv. He is passionate about passing on his technical knowledge through training and educating others.

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

  1. 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. 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. 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. Sure, that’s actually what we did. Appcelerator connected to the web server xml which was created by a php script.

  5. Is source code available for this tutorial?

  6. Anthony James May 17, 2012 at 10:29 pm

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

    Thanks,