Better performance with libxml2 or NSXMLParser on the iPhone?

You could always take a look at my replacement for NSXMLParser. It reads the XML data from a stream rather than keeping it all in memory, and passes it 1KB at a time into libxml (where NSXMLParser hands in everything in one go).

Source code is available on github and my writeup on the memory aspects are on my blog.

Leave a Comment