XML parsing very slow
Hi all, I have been trying to parse xml's which is more than just a simple rss feed using the kitchen sink sample but parsing the xml seems to take a lot of time. Looping through 44 records and creating tablerows with 7 labels in each row seems to be taking ages.
Does anyone know if using json will speed up this process or is there any other way of approaching this? the actual xml is very fast as it is cached on the server just the android emulator seems to take ages to parse it.
It will be unrealistic to develop realtime applications using Titanium framework if this is not handled by the framework. Has anyone else encountered this?
2 Answers
-
There seems to be issues in general with XML parsing, at least on the iPhone. Check out the kitchen sink demo under the platform tab in the emulator. Go into the XHR section, and then select XML data. It will probably load the first time, but if you go back, then click back in to xml data again, it will lock up the kitchensink app after a few tries.
This is happening with my app…so now I have to figure out a different way (probably a DB) of getting data into my app so that it doesn't crash.
-
@Aaron - JSON is the way.