Better performance with libxml2 or NSXMLParser on the iPhone?

前端 未结 8 1993
天涯浪人
天涯浪人 2020-12-02 23:40

I\'m curious what your solution is for high performance XML parsing on the iPhone is, given its limited amount of CPU power. I have reviewed the XML Performance App that App

8条回答
  •  日久生厌
    2020-12-03 00:19

    If you want to use libxml2 with an Objective-C front, take a look at this useful set of wrapper functions.

    You issue an Xpath query to your XML document object and get back Foundation class objects: NSArray, NSString, and NSDictionary.

    These functions help unite the speed of libxml2 with the readability of Objective-C code.

提交回复
热议问题