I am trying to figure out NSXMLParser for my iPhone app and while I generally understand how it works, I am still a little confused about how to extract the values I need.
The XML result that I am parsing is very basic. it is like so:
<start>
<status>300</status>
<record>
<title>The Title</title>
<content>Some content</content>
</record>
</start>
I need to do 3 things: Get the value of status. Get the value of content from the first record. There may come a response that offers multiple "record" elements so I need to only get the first.
I can't figure out how to simply do that. Most all of the examples I have seen involve creating a separate object to populate this data into and I can't see that being necessary for 2 values. Can anyone tell me how to pull these 2 pieces of data out and only for the first record?