tags:

views:

149

answers:

3

I just want a tutorial demonstrating the 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.

+2  A: 

Not even these?

Ignacio Vazquez-Abrams
just as usual :)
akira
+2  A: 

I recommend TBXML. I use it everytime I need to parse a XML File. It's really easy to use. ;-) See here: TBXML Homepage

Sandro Meier
I actually need to Parse the File with libxml2 as it is required in my project .Also i read that the Parsing with libxml2 is faster so I want to Parse with it only.But Thanks anyways for your response and help.
Aditya Kaushik
+1  A: 

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.

Jay Stramel