redf
2013-06-20 21:17:26 +08:00
NSError *error;
 TBXML * tbxml = [TBXML newTBXMLWithXMLString:responseString error:&error];
 
 TBXMLElement * retcode = [TBXML childElementNamed:@"retcode" parentElement:tbxml.rootXMLElement error:&error];
 TBXMLElement *userInfoSid = [TBXML childElementNamed:@"UserInfoSid" parentElement:tbxml.rootXMLElement error:&error];
 TBXMLElement *userInfoSdiId = [TBXML childElementNamed:@"webuser_sdi_id" parentElement:tbxml.rootXMLElement error:&error];
 
 userSid = [TBXML textForElement:userInfoSid];
 userSdiId = [TBXML textForElement:userInfoSdiId];
 
 [USER setValue:userSid forKey:@"userSid"];
 
 
 NSLog(@"%@", [TBXML textForElement:retcode]);
我做过这方面,有问题可以联系我。