Tutorial or sample code for parsing xml file using libxml2 in IPhone Application
I just want a tutorial demonstrating t开发者_如何转开发he parsing of XML File using libXml2 in Iphone . I found tutorials on TouchXMLand other but not the same for Libxml2 Please help if u can.
Apple has an example iPhone project that parses some simple XML using both NSXMLParser and libxml2 SAX2. You can find the project here:
http://developer.apple.com/iphone/library/samplecode/XMLPerformance/Introduction/Intro.html
Although this isn't exactly a tutorial, it is working code. It runs in the simulator out of the box. Because it accomplishes the same task twice, you should be able to compare the libxml2 code to the NSXMLParser code to figure out what's going on.
Not even these?
I recommend TBXML. I use it everytime I need to parse a XML File. It's really easy to use. ;-) See here: TBXML Homepage
A good sample is: http://bill.dudney.net/roller/objc/entry/libxml2_push_parsing
精彩评论