• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Traversing an NSXML subtree
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Traversing an NSXML subtree


  • Subject: Re: Traversing an NSXML subtree
  • From: "McLaughlin, Michael P." <email@hidden>
  • Date: Thu, 28 May 2009 08:10:36 -0400
  • Acceptlanguage: en-US
  • Thread-topic: Traversing an NSXML subtree

On 5/27/09 5:02 PM, "Keith Duncan" <email@hidden> wrote:

>> Could someone clue me in as to the preferred method to do a
>> subtraversal?
>
> Have you looked at XPath, it will save you from having to enumerate
> and perform element-name string comparisons.
>
> Keith
>
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.

--
Mike McLaughlin

_______________________________________________

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

  • Follow-Ups:
    • Re: Traversing an NSXML subtree
      • From: Graham Cox <email@hidden>
References: 
 >Re: Traversing an NSXML subtree (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: Booleans
  • Next by Date: Re: Traversing an NSXML subtree
  • Previous by thread: Re: Traversing an NSXML subtree
  • Next by thread: Re: Traversing an NSXML subtree
  • Index(es):
    • Date
    • Thread