开发者

NSXMLParser for xml! why is it so hard to use? is there an easy way? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜