ios - Accessing the xml values from NSDictionary -


i using this xmlreader. here code

nsdictionary *xmldict = [xmlreader dictionaryforxmlstring:responsestring error:&error1]; nslog(@"xmldata: %@",xmldict); 

i can save , log data , looks this.

response =     {         gpn0 =         {             text = 10000;         };         gsn0 =         {             text = 4;         };         btn0 =         {             text = up;         };             }; } 

but how can access single element dictionary?

nsdictionary *gpn0 = response[@"gpn0"]; nsnumber *gpn0_text = gpno[@"text"]; // note numeric value  nsdictionary *btn0 = response[@"btn0"]; nsstring *btn0_text = gpno[@"text"]; // note string value      on , forth 

Comments