Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Eric E. Dolecki
Thanks for all that I will read it up tonight, much appreciated. Thanks, Eric On Jan 6, 2010, at 6:36 PM, Peter Blazejewicz > wrote: Hi Eric, On Wed, Jan 6, 2010 at 9:46 PM, Philip Vallone wrote: Hi. I would recommend LibXML. This post is excellent and the the author created an Objectiv

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Peter Blazejewicz
Hi Eric, On Wed, Jan 6, 2010 at 9:46 PM, Philip Vallone wrote: > Hi. > > I would recommend LibXML. This post is excellent and the the author created > an Objective C Wrapper. > > http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html > > Regards, > I can see you have already

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Philip Vallone
Hi. I would recommend LibXML. This post is excellent and the the author created an Objective C Wrapper. http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html Regards, On Jan 6, 2010, at 2:28 PM, Eric E. Dolecki wrote: > This is what I am doing now that feels like a hack (

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Eric E. Dolecki
This is what I am doing now that feels like a hack (I only ever get a 2 day forecast, the one for today is the first): if( [elementName isEqualToString:@"yweather:forecast"]){ NSString *tmpDay = [attributeDict valueForKey:@"day"]; NSDate *now = [NSDate date]; NSDateFormatter *formatter = [[NSDa

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Jeremy Pereira
On 6 Jan 2010, at 18:13, Eric E. Dolecki wrote: > Well okay yes... same element name but I need to tell them apart. The day attribute has a different value in each case though. Just pull out the the object with the key @"day" from the attribute dictionary. > > On Wed, Jan 6, 2010 at 1:07 PM,

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Eric E. Dolecki
Well okay yes... same element name but I need to tell them apart. On Wed, Jan 6, 2010 at 1:07 PM, Jeremy Pereira wrote: > > On 6 Jan 2010, at 16:22, Eric E. Dolecki wrote: > > > I am fetching weather data & in my results I am getting today and > tomorrow's > > forecasts. However they have the sam

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Jeremy Pereira
On 6 Jan 2010, at 16:22, Eric E. Dolecki wrote: > I am fetching weather data & in my results I am getting today and tomorrow's > forecasts. However they have the same node: > > > > > How can I get at those separately in my didStartElement? Is there a way to > turn that into an array or someth