Creating a tableview from xmlparser function

Hi Corona Team,

I was able to consume webservices in corona using xmlparsing. The data to be parsed is from our online database. However, the limitation i have, i can only parse one id with its content and display it to the user. What i want is, i will parse several ids from our database and display it in a tableview.

According to 3rd party sources, most developers use json tp consume the data and display it in a tableview.

http://www.vallu.in/2013/02/list-view-from-remote-database-in.html

Any suggestions and guidelines are of great help.

Thanks!

The reason most people use JSON is that it’s pretty easy to map to Lua tables.  XML is tougher to parse but it can be done.  There is a blog post that’s a a year or so ago that covered using XML with Corona SDK:

http://www.coronalabs.com/blog/2011/07/29/how-to-use-xml-files-in-corona/

One you get the data into a Lua table, you can then use the newTableView widget to draw the data out.

The reason most people use JSON is that it’s pretty easy to map to Lua tables.  XML is tougher to parse but it can be done.  There is a blog post that’s a a year or so ago that covered using XML with Corona SDK:

http://www.coronalabs.com/blog/2011/07/29/how-to-use-xml-files-in-corona/

One you get the data into a Lua table, you can then use the newTableView widget to draw the data out.