For the last few hours I have tired to get my head around using NSXMLParser.
I understand parts of开发者_运维百科 how it works.
WHY Oh WHY! is this so hard? Is there an easy way to do it, like just name the tag and get the contents?
Oh how I miss XmlDocument object from .Net.
Thanks a million.
Why don't you try NSXMLDocument instead? With it you can do the kind of things you want using xpaths. Check out the docs or this sample code : http://developer.apple.com/mac/library/iPad/index.html#samplecode/XMLBrowser/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40008875
精彩评论