I previously asked this question XMLParser Advice.
However I am still unable to get it to function properly….
So I guess I will start from scratch:
Located at a certain URL is an XML Tree that looks like this
<result>
//stuff that I dont need
<title>
//thing that I do need
</title>
//stuff that I dont need
<body>
//thing that I do need
</body>
<result>
How the heck do I go about parsing that?
The (useless) code I have so far can be found in the link at the top of this question.
Thank you for your time.
Write a simple class, which will be the parser’s delegate.
The
fetchValuesAtURL:method will initiate the parse operation.Then :
NSXMLParser‘s delegate is able to do many more things, as described in Event-Driven XML Programming Guide from Apple.For complete reference on delegate methods, see NSXMLParserDelegate Protocol Reference.