Here is the XML code seperated by commas, i am parsing this as a string, now need to convert as integer:
struct in .h file:
NSString * positions;
XML file:
100,280,924,320
here is the code:
NSArray * positons = [partyMember elementsForName:@"position"];
if (positons.count > 0) {
GDataXMLElement *firstName = (GDataXMLElement *) [positons objectAtIndex:0];
//parsed[i].positons = firstName.stringValue;
parsed[i].positons = firstName.stringValue;
NSLog(@"position-%@,\n",parsed[i].positons);
first name is locally declared , parsed[i].positions has da parsed value,
here is what i did 🙂 change Objectatindex value while applying it in viewcontroller