Separate names with a comma.
Discussion in 'Mac Programming' started by saleh.hi.62, Jul 25, 2011.
which Objective C HTML/XML Parser is better to use for MAC and IOS?
What about NSXML?
i want to use xpath query! does it support?
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?
There is documentation for that. Did you read it?
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?
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.