iphone - how to parse google weather xml using XMLParser -


i want parse google weather api using nsxml please guide me this. url looks like: http://www.google.com/ig/api?weather=islamabad. can parse data "tagged" xml, xml structure used in url not understandable me. please help.

you should check docs nsxmlparserdeleagte:

- (void)parser:(nsxmlparser *)parser didstartelement:(nsstring *)elementname namespaceuri:(nsstring *)namespaceuri qualifiedname:(nsstring *)qualifiedname attributes:(nsdictionary *)attributedict 

attributedict - need. example tag:

<weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0"> 

attributedict contain 6 keys: module_id, tab_id, mobile_row, mobile_zipped, row, section appropriate values.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -