On Jun 7, 2011, at 11:41 AM, Chris Ridd wrote:
> You might want to check out the GDataXMLDocument class, as it is a drop-in
> (exact?) replacement for NSXMLDocument except it supports namespaces properly
> in XPath expressions.
Ooooh, that’s nice to know. I’ve had some really frustrating times
On 7 Jun 2011, at 19:11, Eric E. Dolecki wrote:
> This is for iOS. I've used XPath in other languages and it's totally
> awesome. So I am using some flags and a counter to get things done... feels
> like a total hack, but it's working.
>
> Sorry, I'll specify in the future for sure...
You might
This is for iOS. I've used XPath in other languages and it's totally
awesome. So I am using some flags and a counter to get things done... feels
like a total hack, but it's working.
Sorry, I'll specify in the future for sure...
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLi
On Jun 7, 2011, at 7:03 AM, Eric E. Dolecki wrote:
> What I am really after is the current_conditions data. How can one specify
> WHERE in the XML to use the attributes from? A lot of the information is
> repeated in other nodes so I can't just check (if([elementName
> isEqualToString:@"condition
I went with the first solution and it works well enough for me. Anything
beyond this simple XML and I think I'd likely use a 3rd-party solution.
Thanks for the suggestion!
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki
http://blog.ericd.n
Two ways that I've used:
1. Keep a boolean isInCurrentConditions that you set when you start the
current_conditions element and reset when you end that element. Then every time
you enter a condition element you check the boolean to see if you are where you
need to be in the hierarchy. This work
I am fetching some XML weather from Google:
...
What I am really after is the current_conditions data. How can one specify
WHERE in the XML to use the attributes from? A lot of the information is
repeated in other nodes so I can't just check (if([elementName
isEqualToString:@