1

better-performance-with-libxml2-or-nsxmlparser-on-the-iphone

I've read that question and the answer about comparation of XML parser on iOS Apps Development. Well, actually i don't get what the point is.

My questions is, if I want to get and load huge XML data on my apps, larger than 200kb, what the best I could use..? is it NSXMLParser or libxml2..?

btw, I'm using Xcode 4.2 on iOS 5

Community
  • 1
  • 1
caknia
  • 1,221
  • 2
  • 13
  • 24

2 Answers2

1

I have used this resource in the past:

How To Choose The Best XML Parser for Your iPhone Project

The post summarizes the differences between a number of different XML parsers for iOS.

Dan
  • 17,375
  • 3
  • 36
  • 39
0

What's wrong with the accepted answer to that question?

Basically, @zPesk says :

libxml was found to be a bit faster but harder to use because it's in C instead of objective-c.

I don't think it matters that much as long as you use SAX parsing instead of DOM parsing - the last thing you want to do with an XML document that big is to load it into memory all at once!

deanWombourne
  • 38,189
  • 13
  • 98
  • 110
  • well, I want to know which one the best I could put on my app. Is there anyone know an issue while using NSXMLParser when develop on Xcode 4.2...? – caknia Oct 21 '11 at 11:39
  • I think the point of the answer is that it's a personal choice - do you need ultimate speed or do you want it to be easier to write code for? I've never had any problems with `NSXMLParser` if that's any help? – deanWombourne Oct 21 '11 at 13:39