iphone - How to get the data from following XMl? -
i have application in getting xml below. how parse following xml such need maintain 2 separate arrays 'id' , 'last updated'. in idarray want maintain ids , in updatedarrays want maintain dates.how that? both id , lastupdate within single tag below.
id="amitdixit007@gmail.com" lastupdate="08/27/2010 04:15:42pm"
can u tell me link or response string can you;
hold response after parse in array , in nsmutablearray *idarray = [[nsmutablearray alloc]init]; nsmutablearray *lastupdatearray = [[nsmutablearray alloc]init]; (for i=0;i<[array count];i++){
[idarray addobject:[[ array objectatindex:i]valueforkey:@"id"]]; [lastupdatearray addobject:[[ array objectatindex:i]valueforkey:@"lastupdate"]] }
Comments
Post a Comment