Re: Traversing an NSXML subtree
Re: Traversing an NSXML subtree
- Subject: Re: Traversing an NSXML subtree
- From: Graham Cox <email@hidden>
- Date: Thu, 28 May 2009 22:19:04 +1000
On 28/05/2009, at 10:10 PM, McLaughlin, Michael P. wrote:
Yes. I looked at that but
1. My tree is quite small (about 3 pages) and Xpath seemed like
overkill.
2. Different objects will seek out information in different parts of
the
tree. That is, each will do a subtraversal once "their" root node is
located.
I was surprised that there appeared to be no method equivalent to
traverse(subRoot)
since just about every book on data structures discusses it.
Perhaps there is and I just missed it.
OK, I have absolutely no experience of this class, but I took a 2
second swipe at the docs.
Will -[[NSXMLDocument children] objectEnumerator] not do that?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden