Parsing XML issue... advices needed.
This is a discussion on Parsing XML issue... advices needed. within the iPad Development forums, part of the iPad App Store category; Hi,
I'm working on an app, which parses some XML files to build up an database.
Originally, I was presenting a popup to the user ...
-
iPad Fan!
Parsing XML issue... advices needed.
Hi,
I'm working on an app, which parses some XML files to build up an database.
Originally, I was presenting a popup to the user telling him that the db needed to be built. Once he clicked YES; the XML files would get loaded, and the database constructed...
I originally used: NSXMLParser; sadly, the XML files I'm using aren't perfect and NSXMLParser bailed out before completing the parsing... stupidly without having an "ignore this error" option... I switched to TBXML.
Everything worked, except that it takes about 5 minutes to download and parse all XML files (about 200).
I refactored it to download the XML in the background; and once the file is downloaded into NSData objects; I initialize the TBXML and do the parsing...
Now I'm facing two issues:
1 - everytime a download is achieved the app will freeze for couple of seconds.
2 - if the freeze time is too long, the app will just automatically quit (thinking it's crashed...)
Beside creating another thread to do the XML parsing/database populating...
Does anyone has any advices? Such as: better XML library to use, or a way to divide the work using event or notification...?
-
11-12-2010 02:01 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By connie26448 in forum New Member Introductions - Site Assistance
Replies: 4
Last Post: 11-02-2010, 09:38 PM
-
By tfisher in forum iPad General Discussions
Replies: 6
Last Post: 08-02-2010, 11:13 AM
-
By ratcatchervw in forum iPad General Discussions
Replies: 8
Last Post: 07-26-2010, 02:07 AM
-
By Patkc2000 in forum iPad General Discussions
Replies: 3
Last Post: 07-23-2010, 11:07 PM
-
By grace in forum iPad Apps
Replies: 12
Last Post: 06-21-2010, 11:22 AM
Search tags for this page
.xml for ipad
,
error parsing on ipad
,
how to download xml files on ipad
,
ipad for xml
,
ipad not parsing xml
,
ipad read xml
,
ipad xml
,
ipad xml parsing
,
nsxmlparser background thread
,
nsxmlparser thread background
,
read xml files on ipad
,
read xml ipad
,
read+xml ipad
,
reading xml files on ipad
,
tbxml tutorial
,
viewing xml files on ipad
,
xml for ipad
,
xml ipad
,
xml on ipad
,
xml parser for ipad
Click on a term to search for related topics.