I have XML like this:
<questions>
<question title="foo">
<options>
<option>Katsup</option>
<option>Mustard</option>
</options>
</question>
...
While in the question element, I'd like to pull out each of those option
node values to create a mutable array from and stuff into a mutable
dictionary. I'm not sure how to do that (I'm using ARC)...
- (void)parseThatXML:(TBXMLElement *)element
{
do {
if(element -> firstChild)
[self parseThatXML:element -> firstChild];
if([[TBXML elementName:element] isEqualToString:@"question"])
{
NSMutableArray *array = [[NSMutableArray alloc] init];
*//? how do I now dig into this question's options option
values?*
while( ? ){
}
}
} while ((element = element -> nextSibling));
}
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]