Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-02-2009, 08:46 AM   #1 (permalink)
New Member
 
Join Date: Dec 2008
Location: Islamabad, Pakistan
Posts: 42
Default iPhone Development - XMLParser vs. libxml2 vs. TouchXML

I cannot find comparison of these parsing technique. Which one is most commonly used? Which one is the best? Which one is recommended.

My findings are that people hate XMLParser, when they talk about implementation. But i need more information.

Regards.
Mustafa
ghulam.mustafa is offline   Reply With Quote
Old 01-03-2009, 12:07 AM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Default

Quote:
Originally Posted by ghulam.mustafa View Post
I cannot find comparison of these parsing technique. Which one is most commonly used? Which one is the best? Which one is recommended.

My findings are that people hate XMLParser, when they talk about implementation. But i need more information.

Regards.
Mustafa
XMLParser is.... different. I've used it in two apps, and it's not bad. It breaks down each tag in the document into a series of events, and for each event you can take action to save the data to your own data structure. It's memory efficient - you only save the data you need, and the rest gets tossed out. Great for scanning big docs without using a lot of memory. Annoying to have to specify each tag you want to save.

It looks like TouchXML loads an entire document at once, as a tree; then you can walk through it at your leisure and get data from the nodes you need. This is the way most people are used to dealing with XML in other environments - load the whole doc into a tree. It'll take a lot of memory if it's a large document, though.
__________________

Free Games!
smasher is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone development, libxml2, touchxml, xmlparser

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 262
16 members and 246 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:50 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0