caknia
caknia

Reputation: 1251

iOS - Differences about NSXMLParser and libxml2

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

Upvotes: 1

Views: 1442

Answers (1)

deanWombourne
deanWombourne

Reputation: 38475

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!

Upvotes: 0

Related Questions