Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

saleh.hi.62

macrumors member
Original poster
Jul 25, 2011
95
0
which Objective C HTML/XML Parser is better to use for MAC and IOS?

ParseKit

or

Hpple
 
What about NSXML?

Last time I checked NSXMLDocument wasn't available in iOS and so Apple's built in classes were really only good for SAX parsing (as opposed to DOM parsing). As a result of this I ended up using GData instead. This was a couple years ago though, so my memory is fuzzy.
 
Last time I checked NSXMLDocument wasn't available in iOS and so Apple's built in classes were really only good for SAX parsing (as opposed to DOM parsing). As a result of this I ended up using GData instead. This was a couple years ago though, so my memory is fuzzy.



does GData perform the Xpath query well? what i need is more on extracting data from XML/HTML using XPath.

what can you tell me about GData?
 
does GData perform the Xpath query well? what i need is more on extracting data from XML/HTML using XPath.

what can you tell me about GData?

According this this article http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project GDataXML does support XPath. The article may be of use to you to weigh your alternatives.

GDataXML uses an interface very similar to NSXMLDocument. It was probably programmed to fill in the missing piece since Apple removed it from iOS. It's built on top of libxml2. Other than that I can't tell you anything that you won't find with a google search.
 
According this this article http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project GDataXML does support XPath. The article may be of use to you to weigh your alternatives.

GDataXML uses an interface very similar to NSXMLDocument. It was probably programmed to fill in the missing piece since Apple removed it from iOS. It's built on top of libxml2. Other than that I can't tell you anything that you won't find with a google search.

thank you so much dude,

one more question! GDataXML also work with HTML perfectly as it works with XML?
 
thank you so much dude,

one more question! GDataXML also work with HTML perfectly as it works with XML?

If you're dealing with pure XHTML (ie, HTML that is also valid XML). I don't know what would happen if you threw typical sloppy HTML at it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.