xcode - TouchXML to read in twitter feed for iphone app -


So I've received a feed from Twitter and trying to parse it ... just give me the following fields Need feed from: name, description, time_zone and created_t I am successfully pulling names and details .. However time_jones and created_atam are always zero ... the following code is ...

Anyone why this Can you see that it does not work?

  - (zero) friends_timeline_callback: (NSDT *) data {NSString * string = [[NSString alloc] initWithData: data encoding: NSASCIIStringEncoding]; NSLog (@ "Data from Twitter:% @", string); NSMutableArray * res = [[NSMutableArray alloc] init]; CXMLDocument * doc = [[[CXMLDocument alloc] initWithData: data option: 0 error: zero] AutoWrite]; NSArray * nodes = zero; //! Search for item node nodes = [doctor nodesforxpath: @ "/ conditions / status / user" error: zero]; (Node in cxmilement * node) {int counter; Contact * contact = [[contact alloc] init]; For (counter = 0; counter & lt; [node childCount]; counter ++) {// Drag name and description only for minutes !!! If ([[[node Basic Artendex: Counter] name is: @ "name"]) {contact.name = [[node best antx: counter] string value]; } And if (([[[[[[[[[[child child] is: ("[[[[node childatindex: counter] aval: @" description "]) {// normal process: words with keys / values ​​from XML node ([[node childatandx: counter] string value) = = Null) {Contact.nextAction = @ "No Details"; } And {contact.nextAction = [[node childatchindex: counter] stringValue]; }} And if ([[[nod Basic Artendex: Counter] name, aval: @ "created_at"]] {contact.date == [[node basic etendex: counter] string value]; } And if ([[[node childaindex: counter] name is: @ "time_zone"]) {contact.status == [[node childautendex: counter] string value]; [Add addbobject: contact]; [Contact continued]; }}} Self.contactsArray = res; [Release]; [Self.tableViewReloadData]; }  

Thank you in advance for your help!

Fiona

There may be a mistake but why are they two (= =), Is usually used for a condition check


Comments